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

Re: Detecting RedHat distribution version

From:
Elaine -HFB- Ashton
Date:
October 26, 1999 12:22
Subject:
Re: Detecting RedHat distribution version
Message ID:
19991026142050.J29132@chaos.wustl.edu
Andy Dougherty [doughera@lafayette.edu] quoth:
*>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)

Thou art most brave :)

[root@tpair /root]# cat /etc/redhat-release 
release 5.1 (Manhattan)

you could test for the 'redhat-release' file to note it as 'RedHat Linux'
and use the release number contained therein. 

e.



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