Thursday, March 14, 2013

check when RPM packages were installed


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)

No comments:

Post a Comment