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

Terry trryhend at gmail.com
Fri Aug 19 08:42:00 CDT 2005


On 8/19/05, Bryan J. Smith <b.j.smith at ieee.org> 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.
> 
> This has been adopted because most vendors have a /etc/*release* file as
> well.  E.g., /etc/fedora-release.
> 

Slackware substitutes version for release:
/etc/slackware-version

So, maybe some sort of search for filename in /etc that contains
"version" or "release" would be in order?
(Not sure how to formulate a command for such a search, someone help
me out here.)




More information about the Discuss mailing list