Re: Determine system ver (Debian vs. other Linuxes) at runtime?



On Fri, Dec 30, 2005 at 03:43:59PM -0500, Chris Howie wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Matt England wrote:
> > So I'm left with figuring out much harder ways to tell system revs
> > apart. I'm guessing I'm going to have to make an application which does
> > nothing but evaluate a system and report it's variant (Redhat vs SuSE
> > vs. Debian) and revision (Debian Woody/3.0, Sarge/3.1, etc).
>
> If /etc/debian_version exists, then it's debian, and the file contents should
> be the version number (which will be "testing/unstable" if the user is not
> running a stable release).
>

The situation is, i beleive, somewhat more complicated for Debian:

If /etc/debian_version exists, then the system is very probably
debian.

The file contents are (if it IS debian) either the version number,
which is placed there by the install scripts, or whatever the local
sysadmin has decided to put there. This file IS available for local
sysadmin use. Also, i believe, dist-upgrade from stable to testing/
unstable does not change the contents. (But I'm not willing to
dist-upgrade just to make sure, i'm right, so check what i'm saying
yourself if it really matters.)

--
Paul E Condon
pecondon@xxxxxxxxxxxxxxxx


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Xorg Configuration in Etch
    ... What is really missing is a piece of documentation of how to set up xorg in debian. ... As said in my recent post, my dist-upgrade from sarge to etch went fine, except that I don't know how to tweak my x-configuration. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Desktop user: Etch or the next testing?
    ... you have the option to use Debian by it's ... Why is Windows used by so many people? ... Microsoft became dominant in the software-for-desktop-computers before ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • RE: Which IM, blog and email service are best for debian users?
    ... blog and email service are best for debian users? ... microsoft live messenger, live spaces and hotmail as my IM, blog and email ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: distributions: UBUNTU vs DEBIAN
    ... No, but the driver and module source are in non-free, and this page: ... commands, and take less than 7 minutes (I just did it while writing this ... Mepis is Debian based so there's nothing there that Debian couldn't do if it ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Woody on 486 problem
    ... Remember when Win95 ran well with 16MB RAM? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Its strange that older debian distributions are failing to properly ... And all I need is just simple network client without gui or any services:) ...
    (Debian-User)