Sometimes I need to find out when something was installed. The following two commands will show the history for yum and rpm, respectively
To get a history of all the yum installs, look at:
/var/log/yum.log
Rpm package installation history
If you need when the packages installed in Red Hat or Fedora
rpm -qa –queryformat ‘%{NAME}:\t %{INSTALLTIME:date}\n’
Use the following to get the list of packages sorted by install date/time:
# rpm -qa --queryformat '%{installtime} (%{installtime:date}) %{name}\n' | sort -nr|more
1365180725 (Friday 05 April 2013 09:52:05 AM PDT) system-config-nfs
1364246939 (Monday 25 March 2013 02:28:59 PM PDT) redis
1364234414 (Monday 25 March 2013 11:00:14 AM PDT) autoconf26x
1355491265 (Friday 14 December 2012 05:21:05 AM PST) openswan
1352428635 (Thursday 08 November 2012 06:37:15 PM PST) yum-utils
1352428635 (Thursday 08 November 2012 06:37:15 PM PST) yum-security
1352428635 (Thursday 08 November 2012 06:37:15 PM PST) yum-fastestmirror
1352428634 (Thursday 08 November 2012 06:37:14 PM PST) yum
To get a history of all the yum installs, look at:
/var/log/yum.log
Rpm package installation history
If you need when the packages installed in Red Hat or Fedora
rpm -qa –queryformat ‘%{NAME}:\t %{INSTALLTIME:date}\n’
Use the following to get the list of packages sorted by install date/time:
# rpm -qa --queryformat '%{installtime} (%{installtime:date}) %{name}\n' | sort -nr|more
1365180725 (Friday 05 April 2013 09:52:05 AM PDT) system-config-nfs
1364246939 (Monday 25 March 2013 02:28:59 PM PDT) redis
1364234414 (Monday 25 March 2013 11:00:14 AM PDT) autoconf26x
1355491265 (Friday 14 December 2012 05:21:05 AM PST) openswan
1352428635 (Thursday 08 November 2012 06:37:15 PM PST) yum-utils
1352428635 (Thursday 08 November 2012 06:37:15 PM PST) yum-security
1352428635 (Thursday 08 November 2012 06:37:15 PM PST) yum-fastestmirror
1352428634 (Thursday 08 November 2012 06:37:14 PM PST) yum