To find out the last patch date of a Red Hat Enterprise Linux server you may use the rpm command or see the /var/log/yum.log file.
Find Last Patch Date of RHEL Server
Login to the server and open the terminal or connect to the server through ssh using PuTTY etc. and run the command rpm -qa –last to find out the date of the rpm packages on which they had updated on an RHEL server.
[user@dbappweb.com ~]$ rpm -qa --last
iwl3160-firmware-25.30.13.0-76.el7.noarch Sun 02 Aug 2020 07:09:05 PM IST
NetworkManager-config-server-1.18.4-3.el7.noarch Sun 02 Aug 2020 07:09:04 PM IST
iwl7260-firmware-25.30.13.0-76.el7.noarch Sun 02 Aug 2020 07:09:04 PM IST
iwl6050-firmware-41.28.5.1-76.el7.noarch Sun 02 Aug 2020 07:09:04 PM IST
iwl6000g2a-firmware-18.168.6.1-76.el7.noarch Sun 02 Aug 2020 07:09:04 PM IST
.
.
.
You can also get the date of patching on an RHEL server by checking the /var/log/yum.log file.
[user@dbappweb.com ~]$ sudo tail /var/log/yum.log
Aug 02 19:04:46 Updated: libgcc-4.8.5-39.el7.x86_64
Aug 02 19:04:46 Updated: redhat-release-server-7.8-2.el7.x86_64
Aug 02 19:04:47 Updated: 1:grub2-common-2.02-0.86.el7_8.noarch
Aug 02 19:04:47 setup-2.8.71-11.el7.noarch: 100
Aug 02 19:04:47 Updated: 1:liberation-fonts-common-1.07.2-16.el7.noarch
Aug 02 19:04:49 Updated: filesystem-3.2-25.el7.x86_64
Aug 02 19:04:50 Updated: 1:grub2-pc-modules-2.02-0.86.el7_8.noarch
Aug 02 19:04:50 Updated: 32:bind-license-9.11.4-16.P2.el7_8.6.noarch
Aug 02 19:04:52 Updated: kbd-misc-1.15.5-15.el7.noarch
Aug 02 19:04:52 Installed: dejavu-fonts-common-2.33-6.el7.noarch
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 the 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 a complete package, update history use the following command.
[user@dbappweb.com ~]$ rpm -qa --last
Last Updated: Aug 03, 2020
Related Posts
- How to Find Out RHEL 6 / RHEL 7 Kernel Version
- 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