Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Do I Tell Which Version? 1

Status
Not open for further replies.

SamBones

Programmer
Aug 8, 2002
3,186
US
Howdy,

I know I can get the OS version with a "[tt]uname[/tt]" command, but how do I equate that to RedHat AS3, or ES4, or AS5, or whatever else there might be.

For example...
Code:
# uname -a
Linux servername 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux
How do I tell which "version" of RedHat that is?


 
To get the redhat version, use:

Code:
$ cat /etc/redhat-release

Or at least that's how I found out years ago.
 
Thanks danomac. Do you know if that is kept up to date during kernel patches and upgrades? It is just a text file after all.
 
Going from (a very sketchy) memory: If you do a major upgrade it should update that text file. The "redhat version" is specifically referring to a core set of system utilities installed. You may see an option to update to a newer release in the updater, but you need to specifically choose this; it won't do it automatically.
 
I also found this, which seems to give major and minor version numbers. Just a little more info.
Code:
# rpm -q redhat-release
redhat-release-3AS-7.3

Thanks for the help! A star for you!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top