Re: Determine system ver (Debian vs. other Linuxes) at runtime?
- From: Paul E Condon <pecondon@xxxxxxxxxxxxxxxx>
- Date: Fri, 30 Dec 2005 16:32:58 -0700
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
- References:
- Determine system ver (Debian vs. other Linuxes) at runtime?
- From: Matt England
- Re: Determine system ver (Debian vs. other Linuxes) at runtime?
- From: Chris Howie
- Determine system ver (Debian vs. other Linuxes) at runtime?
- Prev by Date: Re: Building postgresql 8.1.0: trouble finding readline, libz, etc
- Next by Date: Re: Using USB pen drive
- Previous by thread: Re: Determine system ver (Debian vs. other Linuxes) at runtime?
- Next by thread: Re: Determine system ver (Debian vs. other Linuxes) at runtime?
- Index(es):
Relevant Pages
|
|