Sometimes we need to find out when a package was updated on our Red Hat Enterprise Linux (RHEL) Server. To find this we can use the rpm command.
Get the RPM Packages Update History
You can use the following command to check the update history of a particular package.
$ rpm -q <package-name> --last
Example: Below command shows the update history of kernel.
[user@dbappweb.com ~]$ rpm -q kernel --last
kernel-3.10.0-1127.18.2.el7.x86_64 Sun 02 Aug 2020 07:07:48 PM IST
kernel-3.10.0-1062.4.1.el7.x86_64 Sun 20 Oct 2019 10:09:48 AM IST
kernel-3.10.0-862.14.4.el7.x86_64 Thu 04 Oct 2018 01:56:55 PM IST
For complete package update history use the following command.
[user@dbappweb.com ~]$ rpm -qa --last
Last Updated: Aug 04, 2020
Related Posts
- How to Find Out RHEL 6 / RHEL 7 Kernel Version
- How to Find Last Patch Date of RHEL Servers
- Define Password Policy and Aging in Linux/RHEL 6
- How to Disable SELinux in RHEL
- Linux command to get Hardware Serial Number
- How to sort the directories in Linux/RHEL
- How to view/print routing table in Linux
- How to Disable Root SHH Login in RHEL
- How to Set or Change System Hostname in RHEL 7
No Responses