On Tue, 2 Aug 2011, Ken Teh wrote:
Do you guys have an established way of determinining the redhat-release number?
Is /etc/redhat-release or system-release the only way?
And if it is, is it always "Scientific Linux release x.y (atom-name)" ?
Writing scripts...be nice if some bits of stuff did not keep darting all over
the place. I noticed DB_CONFIG.example from openldap-servers moved going from
6.0 to 6.1. The 6.1 makes more sense.
Thanks
Ken
You could use lsb_release .
# lsb_release -i
Distributor ID: Scientific
# lsb_release -d
Description: Scientific Linux release 6.0 (Carbon)
# lsb_release -r
Release: 6.0
# lsb_release -c
Codename: Carbon
-Connie Sieh