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

Re: Is there a way to positively, uniquely identify which Debian release a program is running on?



This one time, at band camp, Kris Deugau said:
> 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.

The closest we ship is /etc/debian_version.  I use it for several
similar tests at work, you just need to keep a mental map between the
number and the version string.  If you can count lsb-release being
installed, that will give you more information, or you could just look
at the tests it performs to get an idea of how it distinguishes
releases.

Take care,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran@debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature


Reply to: