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

Re: Detecting RedHat distribution version

Dan Sugalski
October 26, 1999 11:56
Re: Detecting RedHat distribution version
Message ID:
At 02:55 PM 10/26/99 -0400, 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)

6.0 shows:

   Red Hat Linux release 6.0 (Hedwig)

in /etc/redhat-release. (Presumably after Harry Potter's owl, but that's
not likely relevant here...)


----------------------------------------"it's like this"-------------------
Dan Sugalski                            even samurai                           have teddy bears and even
                                        teddy bears get drunk Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About