Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: check when RPM packages were installed  (Read 3595 times)

0 Members and 1 Guest are viewing this topic.

Haripriya H

  • Guest
check when RPM packages were installed
« on: June 02, 2014, 01:27:05 pm »
How do I check when RPM packages were installed on my machine?

Resolution: You can use the following command to display the install date and time of all the packages installed on your system:

rpm -qa --last

If you have a vague idea of the package name pipe (pipe is | key) the output of the above command through grep and use a substring that would be in the package name.

For example, to search for packages containing the substring kernel.

rpm -qa --last | grep kernel

(Returns the install date and time for all packages with kernel in their name, such as the kernel, kernel-utils, etc.) If you know the exact name for the package, you can modify the command and specify the package name. For example:

rpm -q --last filesystem

(Returns the install date and time of the filesystem package)