SCIENTIFIC-LINUX-USERS Archives

August 2011

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Connie Sieh <[log in to unmask]>
Reply To:
Connie Sieh <[log in to unmask]>
Date:
Tue, 2 Aug 2011 11:30:21 -0500
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (26 lines)
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

ATOM RSS1 RSS2