develooper Front page | perl.perl5.porters | Postings from October 1999

Re: Detecting RedHat distribution version

Thread Previous | Thread Next
From:
Matt Sergeant
Date:
October 26, 1999 12:38
Subject:
Re: Detecting RedHat distribution version
Message ID:
99102620385600.06780@dougal.sergeant.org
On Tue, 26 Oct 1999, Andy Dougherty wrote:
> I'm currently trying to patch Configure to tell you the Linux
> distribution (RedHat, SuSE, Debian, others as folks supply the
> information), and I'm unsure of how to best parse RedHat's
> /etc/redhat-release file. I have the following 1 example:
> 
> 	Red Hat Linux release 6.1 (Cartman)
> 
> I'm guessing that the '6.1' is what would be most useful. Does anyone have
> a variety of Red Hat systems around or enough familiarity with Red Hat to
> say how stable that format is or give me other examples?

Mandrake 6.0 gives:

$ cat /etc/redhat-release
Linux Mandrake release 6.0 (Venus)

--
<Matt/>

Details: FastNet Software Ltd - XML, Perl, Databases.
Tagline: High Performance Web Solutions
Web Sites: http://come.to/fastnet http://sergeant.org
Available for Consultancy, Contracts and Training.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About