[LCP]Linux release

Mohd Saifullah saif at lantana.tenet.res.in
Wed Mar 20 04:18:05 UTC 2002


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





More information about the linuxCprogramming mailing list