Re: Cents OS from Bash Shell

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



On 04/25/2013 01:39 PM, Dave Cross wrote:

> On 25 April 2013 13:30, Mike Burger <mburger@xxxxxxxxxxxxxxxxx> wrote:
> 
>>> On Thu, 2013-04-25 at 13:04 +0100, Adekoya Adekunle wrote:
>>>> I want to know the right command to type from a bash shell so that i can
>>>>    1) Check the version of my cent os
>>>
>>> lsb_release -a
>>
>> >From the question, he wants to know the version of CentOS, not the LSB
>> info.
>>
>> rpm -q centos-release
> 
> 
> 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

How odd. On my 64-bit CentOS 6.3, 'lsb_release -a' returns:

'bash: lsb_release: command not found'

Works on Debian 6.0.5 & Ubuntu 12.04.2 & 12.10.

The CentOS distro is a cloud server image if that makes any difference
although I wouldn't have thought so.

Cheers,

  Phil...

-- 
currently (ab)using
CentOS 5.9 & 6.4, Debian Squeeze & Wheezy, Fedora Beefy & Spherical,
Lubuntu 12.10, OpenSuSE 12.3, OS X Snow Leopard & Ubuntu Precise & Quantal
GnuPG Key : http://www.horse-latitudes.co.uk/publickey.asc


_______________________________________________
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