Yum and RPM install history

By jbayer - Last updated: Friday, March 30, 2012 - Save & Share - One Comment

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 -n

Posted in Administration • • Top Of Page
12,214 views

One Response to “Yum and RPM install history”

Comment from James Ott
Time December 8, 2016 at 12:20 pm

I would add %{version} after name to also list the version installed.

Write a comment

asd