System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the currently installed patch level of Redhat Linux

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

How to find the currently installed patch level of Redhat Linux

Hi All,

We are using Redhat4 & Redhat5 and using suse 9 & 10.

For suse, we can find the currently installed patch level (like patch level 1, 2 , 3 ...)using below commands.

Ex 1:

# cat /etc/SuSE-release
SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10
PATCHLEVEL = 2


Ex 2:

suse10tst:~ # SPident -vv

Summary (using 974 packages)
Product/ServicePack conflict match update (shipped)
SLE-10-x86_64 0 0% 358 36.8% 0 (2754 13.0%)
SLE-10-x86_64-SP1 0 0% 506 52.0% 0 (2938 17.2%)
SLE-10-x86_64-SP2 0 0% 971 99.7% 0 (2337 41.5%)
Unknown 3 0.3%

Legend for Package Details:
- conflicting package (found < expected)

CONCLUSION: System is up-to-date!
found SLE-10-x86_64-SP2


Like above, i want to see the currently installed patch level for Redhat.



5 REPLIES
Mel Burslan
Honored Contributor

Re: How to find the currently installed patch level of Redhat Linux

redhat does not have such a fictionary patch level concept I suppose. I am not sure where SuSE's implementation is coming from but looking at the 'cat SuSE-release' command, it is a patch level of the kernel under suse implementation.

Closest thing to this you can get under any RHEL release is, using the command

uname -r

which will give you your kernel release version.

Hope this helps
________________________________
UNIX because I majored in cryptology...
Steven E. Protter
Exalted Contributor

Re: How to find the currently installed patch level of Redhat Linux

Shalom,

uname -a
#kernel
cat /etc/redhat-release

rpm -qa

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
dirk dierickx
Honored Contributor
Solution

Re: How to find the currently installed patch level of Redhat Linux

The closest thing you get to patch levels is an update. this can be found by using the command:

cat /etc/redhat-release

you will now know which update you are on, which is interesting because some soft/hardware only support RH from a certain update (for example RH 4.6 means Red Hat 4 Update 6).

however it is possible that fixes for certain pakcages are installed as well. you see, there is no concept of 'patch' on linux package management. typicaly a replacement package is released and the version information will by different.

for example:

screen-4.0.2-5 is replaced with screen-4.0.2-6 (the package iteration is noted after the last '-').

if you want to know if there are packages available, you should use up2date or yum to querry the repositories.
Suraj K Sankari
Honored Contributor

Re: How to find the currently installed patch level of Redhat Linux

Hi,

I think this will help you
#cat /etc/redhat-release

Suraj
Ivan Krastev
Honored Contributor

Re: How to find the currently installed patch level of Redhat Linux

Check for LSB. If this is installed you can use lsb_release (Python script) to get info:

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 5.0.2 (lenny)
Release: 5.0.2
Codename: lenny


regards,
ivan