How to get the rpm packages update history.

Solution Verified - Updated -

Environment

Red Hat Enterprise Linux 5/6/7

Issue

  • How to list all packages updates and applied time in my system
  • How to check my Linux system patch history.

Resolution

There are two method to get this information.

1. You can use following command to check particular package update history.

#rpm -q <package name> --last

---------------------------------------------
example :

rpm -q kernel --last
kernel-2.6.34.7-61.fc13                       Tue 26 Oct 2010 03:48:21 PM IST
kernel-2.6.34.7-56.fc13                       Fri 15 Oct 2010 11:42:40 AM IST
kernel-2.6.33.3-85.fc13                       Wed 13 Oct 2010 12:23:50 PM IST

------------------------------------------------

For complete package update history use following command.

#rpm -qa --last

2. If you are scheduling automatic package updates on RHN,  you can check this in system event history on RHN under particular system profile on RHN.

RHN > System > Event > History

  • Component
  • yum

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.