Douglas Muth on 12 Jun 2007 17:12:53 -0000


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

Re: [PLUG] Determining the underlying distro

  • From: "Douglas Muth" <doug.muth@gmail.com>
  • To: "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
  • Subject: Re: [PLUG] Determining the underlying distro
  • Date: Tue, 12 Jun 2007 13:12:46 -0400
  • Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nFgGt69xe82ewQyvp4ouqMdw4E0Fak461Sth2Frj4viZTN6bveW2tKb0wQVXcSQezt38vnJbb34fTa6Qbzu1oBA4nkfdfNZzepXS+OFhXigxTv2CmZLqO1rWYjgipFDpLPEyiJw9SyVBOf6UGsWP1TMJypa46OVfK0GHXBRwMZQ=
  • Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
  • Sender: plug-bounces@lists.phillylinux.org

On 6/12/07, K.S. Bhaskar <bhaskar@bhaskars.com> wrote:
We currently have an extensive automated regression test suite that runs on
multiple Linux distros, including RH, straight Debian, and [K]ubuntu, with
SuSE to follow shortly.  Is there an easy way to check what the underlying
Linux distribution is?  I suppose when installing the OS, we could create a
/etc/distro, but that seems so... well I am not sure what the word is, maybe
"uncool".

I don't know if there is a distro-independent way of figuring it out, but I can tell you that RedHat and CentOS distros put the name and version number of the release in /etc/redhat-release.

Ubuntu systems use /etc/lsb-release to hold the distro data.

I do not have any knowledge of what other distros may use.

-- Doug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug