[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [LCP]Linux release




On Tue, 19 Mar 2002, Joachim Bauernberger wrote:

>  Hi Folks,
> | 
> | Does any one know how to detect the Linux flavor, for example Red 
> Hat, SuSE
> 
> SuSe has a file called /etc/SuSE-release which looks somthing like this:
> SuSE Linux 6.4 (i386)
> VERSION = 6.4
> 
> Dunno about the others.

Yes, Redhat also has similar file "/etc/redhat-release"
It's contents are as follows:
"Red Hat Linux release 7.0 (Guinness)"

Regards,
Saif
> 
> Just out of curiosity.... 
> In which situation would you benefit from knowing that?
> The only tool that I know of that needs to know this is webmin ...
> Isn't it enough to know i.e. (g)libc and (maybe) kernel version?
> 
> Regards,
> Joachim
>  
> | .....
> | 
> | Thx
> | 
> | Karel Cardona
> | Software Engineer
> | MSI-Miami
> | www.marsys.com