Easiest way to get the dates when your redhat linux server is patched.
Today we will look at an interesting article to find out the exact dates when we have our linux system patched.
a. The trick to find when is your kernel last updated.
# rpm -qa --last | grep -i kernel
b. To see all packages when they were installed.
[root@ngelinux016 ]# rpm -qa --last | more katello-ca-consumer-ngeli007.neglinuxgroup.net-1.0-1 Tue 12 Jan 2021 09:14:53 GMT subscription-manager-1.11.3-14.el5_11 Tue 29 Dec 2020 08:41:27 GMT virt-what-1.11-2.el5 Tue 29 Dec 2020 08:41:25 GMT python-rhsm-1.11.3-5.el5 Tue 29 Dec 2020 08:41:25 GMT python-simplejson-2.0.9-8.el5 Tue 29 Dec 2020 08:41:23 GMT python-ethtool-0.6-5.el5 Tue 29 Dec 2020 08:41:22 GMT python-dateutil-1.2-3.el5 Tue 29 Dec 2020 08:41:22 GMT BESAgent-9.5.16.90-rhe5 Wed 28 Oct 2020 09:44:20 GMT cloudamize_agent-11.15-1 Tue 02 Jun 2020 21:04:53 BST BESClientDeployTool-9.5.14.73-rhe5 Mon 09 Dec 2019 10:25:56 GMT rear-1.17.2-1.el5 Tue 09 Jul 2019 16:29:07 BST parted-1.8.1-30.el5 Tue 09 Jul 2019 16:28:59 BST mkisofs-2.01-10.7.el5 Tue 09 Jul 2019 16:28:58 BST parted-1.8.1-30.el5 Tue 09 Jul 2019 16:28:54 BST snowagent-5.0.1-1 Thu 07 Feb 2019 10:24:48 GMT bind-libs-9.3.6-25.P1.el5_11.12 Wed 25 Oct 2017 10:45:37 BST nss-3.21.3-2.el5_11 Wed 25 Oct 2017 10:45:36 BST nspr-4.11.0-1.el5_11 Wed 25 Oct 2017 10:45:36 BST redhat-release-5Server-5.11.0.8 Wed 25 Oct 2017 10:45:35 BST openssl-0.9.8e-40.el5_11 Wed 25 Oct 2017 10:45:35 BST