JP Vossen on 2 May 2008 12:05:49 -0700


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

Re: [PLUG] linux on hp


> Date: Thu, 1 May 2008 23:02:53 +0100
> From: Stephen Gran <steve@lobefin.net>
> Subject: Re: [PLUG] linux on hp
> 
> On Thu, May 01, 2008 at 01:13:05PM -0400, Ron Kaye said:
>> hope this isnt too basic.
>> how do i get red hat version # (rhel 5 for example), and the patch level 
>> from the command line?
>> not uname for kernel version.
> 
> lsb_release -a

FYI, unfortunately, that is very hit or miss:

CentOS-4
	# lsb_release
	-bash: lsb_release: command not found
	# cat /etc/redhat-release
	CentOS release 4.6 (Final)

CentOS-5
	# lsb_release -a
	LSB Version: 
:core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
	Distributor ID: CentOS
	Description:    CentOS release 5 (Final)
	Release:        5
	Codename:       Final
	# cat /etc/redhat-release
	CentOS release 5 (Final)

Debian Etch:
	# lsb_release -a
	-bash: lsb_release: command not found
	# cat /etc/debian_version
	4.0

Ubuntu 7.10
	$ lsb_release -a
	No LSB modules are available.
	Distributor ID: Ubuntu
	Description:    Ubuntu 7.10
	Release:        7.10
	Codename:       gutsy
	$ cat /etc/lsb-release
	DISTRIB_ID=Ubuntu
	DISTRIB_RELEASE=7.10
	DISTRIB_CODENAME=gutsy
	DISTRIB_DESCRIPTION="Ubuntu 7.10"
	$ cat /etc/debian_version
	lenny/sid

Ubuntu 8.04
	$ lsb_release -a
	No LSB modules are available.
	Distributor ID: Ubuntu
	Description:    Ubuntu 8.04
	Release:        8.04
	Codename:       hardy
	$ cat /etc/lsb-release
	DISTRIB_ID=Ubuntu
	DISTRIB_RELEASE=8.04
	DISTRIB_CODENAME=hardy
	DISTRIB_DESCRIPTION="Ubuntu 8.04"
	$ cat /etc/debian_version
	lenny/sid


When I forget, I end up doing something like this:
	$ ls -l /etc/*{release,version}*

I guess eventually the lsb stuff will sort itself out and propagate, but 
until then...  BTW, LSB = Linux Standard Base for any who don't know.
http://en.wikipedia.org/wiki/Linux_Standard_Base

Sigh,
JP
----------------------------|:::======|-------------------------------
JP Vossen, CISSP            |:::======|        jp{at}jpsdomain{dot}org
My Account, My Opinions     |=========|      http://www.jpsdomain.org/
----------------------------|=========|-------------------------------
"Microsoft Tax" = the additional hardware & yearly fees for the add-on
software required to protect Windows from its own poorly designed and
implemented self, while the overhead incidentally flattens Moore's Law.
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug