Ron Kaye on 2 May 2008 13:15:51 -0700 |
its all good, redhat_release does the trick. now lets get a bit more granular. what about PATCH LEVELS? also i am confused with redhat- fedora parallel development. dont the version numbers match on the hp site, i see redhat supported to rhel5. (yes, we are major data center with hp equipment) then i see fedora up to 9. whats up with that? i'm confused. of course the app we support is rhel 3, yes thats 3. the to stay close to that version, we were thinking rhel5. (highest hp supported release) so we thought fedora core 5 dvd. cant find it to download. everything is 8 and 9 Computer Sciences Corporation Registered Office: 3170 Fairview Park Drive, Falls Church, Virginia 22042, USA Registered in Nevada, USA No: C-489-59 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 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 ___________________________________________________________________________ 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
|
|