Many time we are facing the problem with the RPM database and we are not sure when the last time we have updated the RPM databases, at that time we can use the following command to check the RPM database update dates
root@server [~]# rpm -qa -last
It will give you the result like
root@server [~]# rpm -qa -last
libxml2-devel-2.6.26-2.1.12.el5_7.1 Thu 03 Nov 2011 04:38:06 AM GMT
libxml2-2.6.26-2.1.12.el5_7.1 Thu 03 Nov 2011 04:38:00 AM GMT
freetype-devel-2.2.1-28.el5_7.1 Thu 27 Oct 2011 04:38:19 AM BST
freetype-2.2.1-28.el5_7.1 Thu 27 Oct 2011 04:38:16 AM BST
libX11-devel-1.0.3-11.el5_7.1 Thu 06 Oct 2011 04:37:58 AM BST
libX11-1.0.3-11.el5_7.1 Thu 06 Oct 2011 04:37:53 AM BST
file-4.17-15.el5_3.1 Wed 05 Oct 2011 04:39:01 AM BST
rpm-build-4.4.2.3-22.el5_7.2 Tue 04 Oct 2011 04:37:59 AM BST
rpm-python-4.4.2.3-22.el5_7.2 Tue 04 Oct 2011 04:37:58 AM BST
For example rpm-python-4.4.2.3-22.el5_7.2 is last updated on the date Tue 04 Oct 2011 04:37:58 AM BST”