| Nico Golde 2007-05-30, 7:20 pm |
| Hi,
* Kris Deugau <kdeugau@vianet.ca> [2007-05-30 23:06]:
[...]
> However, there doesn't seem to be any single, consistent,
> doesn't-change-for-the-life-of-the-release, programmatically possible
> (never mind *easy* just yet...) method to find out if I'm on Debian
> sarge, etch, lenny, or some third-party Debian-derived distribution.
> Nor does there seem to be any similar indicator to see if I'm on Debian
> 3.0, 3.1, 4.0, or whatever version list a third-party distro is up to
> this week. (Side note: When is the number version of a new release
> decided?)
>
> On RHEL and derived distros, there's usually a file /etc/redhat-release
> (sometimes renamed, but usually trivially enough that it can be found
> with little trouble) containing both the distro code name and the
> version number. It may change a little on point releases, but it's
> stable, consistent, and unique to each release.
/etc/debian_version
Kind regards
Nico
--
Nico Golde - http://ngolde.de - nion@jabber.ccc.de - GPG: 0x73647CFF
For security reasons, all text in this mail is double-rot13 encrypted.
|