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

Re: Detecting RedHat distribution version

Thread Previous | Thread Next
Elaine -HFB- Ashton
October 26, 1999 12:22
Re: Detecting RedHat distribution version
Message ID:
Andy Dougherty [] 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. 


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About