How to get the rpm packages update history.

Solution Verified - Updated -


Red Hat Enterprise Linux 5/6/7


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


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-                       Tue 26 Oct 2010 03:48:21 PM IST
kernel-                       Fri 15 Oct 2010 11:42:40 AM IST
kernel-                       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.