Re: Cents OS from Bash Shell

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



On Thu, Apr 25, 2013 at 01:39:29PM +0100, Dave Cross wrote:
> 
> lsb_release gives the version of CentOS.
> 
> $ lsb_release -a
> LSB Version:
> :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
> Distributor ID: CentOS
> Description: CentOS release 5.8 (Final)
> Release: 5.8
> Codename: Final

And it pulls it from a text-based file that is subject to automated and
human modification.  Parsing release info from centos-release is the
most accurate way to determine what the currently running release is.





							John
-- 
UNIX Russian Roulette: sudo [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live"

-- Fabian Arrotin

Attachment: pgpR4S7bXy9Bo.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux