Ask Your Question

List explicitly installed packages

asked 2016-04-02 12:31:39 -0500

jcox gravatar image

updated 2016-04-03 08:33:15 -0500

Is there a way to get a list of packages that were explicitly installed after installation?

The best solution I can find is dnf history userinstalled, but the output on my system includes hundreds of packages that I haven't installed. Even when looking at the packages that are common between that command and package-cleanup --leaves --all, there are 200+ supposedly user installed leaf packages on my system. Packages like cheese and bluez-cups that were installed with the Fedora Workstation installer are still in the list.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-04-18 07:59:39 -0500

jcox gravatar image

I wrote a little script that lists all orphan packages that don't belong to the given groups. Running it as shown below gets me pretty close to what I was looking for.

python "Fedora Workstation" "Anaconda Tools"

The script can be found here:

edit flag offensive delete link more

answered 2016-04-02 16:35:34 -0500

genodeftest gravatar image

There are three things coming together here:

  1. dnf and PackageKit (backend for gnome-software) don't work well together. If you used both, your dnf history is broken.
  2. On first Fedora installation, a group of packages gets installed and marked as manually installed. That's the list of packages in your group. See section "Group Command" in man dnf.
  3. The packages you manually installed.

The RPM database might be containing the data you want. You can use the rpmorphan tool to track down all packages "manually" installed no matter whether dnf or PackageKit were used.

edit flag offensive delete link more


Yeah, I'm looking for 3 without 2, but they appear to be marked the same. rpmorphan -all -install-time -XX looked promising, where XX was the number of days since installation. However, it appears to count the most recent update for a package as its install time.

jcox gravatar imagejcox ( 2016-04-02 19:34:09 -0500 )edit

Question Tools

1 follower


Asked: 2016-04-02 12:17:21 -0500

Seen: 1,226 times

Last updated: Apr 18 '16