[NTLUG:Discuss] Any way to detect a distro?

Chris Cox cjcox at acm.org
Fri Aug 19 10:55:14 CDT 2005


Bryan J. Smith wrote:
> On Fri, 2005-08-19 at 04:56 -0500, Leroy Tennison wrote:
>>I know about uname but I'm wondering if there is any simple program like 
>>it that tells you it's "SuSE 9.2" or "Fedora Core 4", etc.
> 
> It's up to vendors to come up with their own standards for distribution
> tagging (disttag).
> 
> But Linux Standards Base (LSB) distributions typically have a:  
>   /etc/lsb-release
> 
> Which states what LSB release they are compliant (or attempt to comply)
> to.

With that said... you can use:

lsb_release -a

to get the release info.  But it's only been very recently that
some players (cough) have started including this.




More information about the Discuss mailing list