Ted Mielczarek schrieb:
> I think this is standardized as /etc/lsb-release on most modern distros.
Not so sure there is a real standard yet - and we don't only support
ultra-modern distros anyhow.
Here's what I'm seeing on my openSUSE Factory (i.e. the bleeding-edge
dev distro):
> ls -l /etc/*-release
-rw-r--r-- 1 root root 110 17. Feb 20:42 /etc/lsb-release
-rw-r--r-- 1 root root 207 14. Mär 11:46 /etc/os-release
-rw-r--r-- 1 root root 68 14. Mär 11:46 /etc/SuSE-release
> cat /etc/lsb-release
LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"
> cat /etc/os-release
NAME=openSUSE
VERSION="12.2 Milestone 2 (Mantis)"
VERSION_ID="12.2milestone2"
PRETTY_NAME="openSUSE 12.2 Milestone 2 (Mantis) (x86_64)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse:12.2"
> cat /etc/SuSE-release
openSUSE 12.2 Milestone 2 (x86_64)
VERSION = 12.2
CODENAME = Mantis
I guess os-release is nearest to what could become usable, but I don't
think it's present in too many distros yet, esp. given what Andrew
replied. Also, usually, what we really need to know when we are seeing
problems are specific versions of several packages, e.g. GTK, and it's
easy to install newer versions of those packages on an older distro,
usually.
Robert Kaiser