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

Terry trryhend at gmail.com
Fri Aug 19 09:37:02 CDT 2005


On 8/19/05, Terry <trryhend at gmail.com> wrote:
> 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?

i.e.
ls /etc |grep release ; ls /etc |grep version




More information about the Discuss mailing list