Yum and RPM install history

By jbayer - Last updated: Friday, March 30, 2012 - Save & Share - Leave a 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,029 views

Write a comment

asd