Home » Questions » Computers [ Ask a new question ]

How do you track which packages were installed on Fedora (Linux)?

How do you track which packages were installed on Fedora (Linux)?

(This question is very similar to 6338. It was suggested that it be split from it as Fedora and Ubuntu/Debian are different enough to warrant different answers.)

Asked by: Guest | Views: 340
Total answers/comments: 3
bert [Entry]

"Try using
sudo yum history packages-list \*

It will show what was installed explicitly and what was installed as a dependency:

ID | Action(s) | Package
-------------------------------------------------------------------------------
47 | Dep-Install | cairomm-1.8.0-2.1.el6.x86_64
47 | Dep-Install | glibmm24-2.22.1-1.el6.x86_64
47 | Install | gnome-system-monitor-2.28.0-11.el6.x86_64"
bert [Entry]

"rpm -qa --last

from the man pages:

--last Orders the package listing by install time such that the latest packages are at the top.

Sample output:

mdadm-3.2.2-9.el6 Mon 12 Dec 2011 10:06:17 AM EST
libdrm-2.4.25-2.el6 Mon 12 Dec 2011 09:54:51 AM EST
tcp_wrappers-libs-7.6-57.el6 Mon 12 Dec 2011 09:54:50 AM EST"
"rpm -qa --last

from the man pages:

--last Orders the package listing by install time such that the latest packages are at the top.

Sample output:

mdadm-3.2.2-9.el6 Mon 12 Dec 2011 10:06:17 AM EST
libdrm-2.4.25-2.el6 Mon 12 Dec 2011 09:54:51 AM EST
tcp_wrappers-libs-7.6-57.el6 Mon 12 Dec 2011 09:54:50 AM EST"
bert [Entry]

"Assuming you always used ""yum"" to install everything you can do:

sudo yum history info \* | grep ""^Command Line : install""

It should show you all ""yum install"" commands performed on the system after installation."