Ask Your Question

Find manually installed packages by dnf

asked 2015-09-24 07:18:41 -0500

Georg gravatar image

Dear community,

is there a way to view/delete the manually installed packages using dnf? I'd like to clean up my system but don't want to delete necessary system packages. I tried two tools, namely yumfoster and rpmfoster, but I'am confused which packages are mandatory by the system, and which I can safely delete. Gentoo for instance has a world file which is filled with the packages installed by the user. Or with debfoster under ubuntu/debian it's more intuitive which packages aren't included in the base installation. If it's not possible yet with dnf I'd like to express this as a wish for future versions of Fedora. :)

Regards, Georg Funk

edit retag flag offensive close merge delete



Do you mean to ask if dnf can be made to recognize rpm packages you installed outside of dnf, using the rpm utility, or are you asking if dnf can be used to manage packages you installed individually with dnf apart from upgrade operations?

bitwiseoperator gravatar imagebitwiseoperator ( 2015-09-24 21:52:20 -0500 )edit

Sure, the description below does not list any history installed outside dnf. Packages installed using Gnome Software will not be shown. At Georg: Stay away from using Software Center for installing software.

florian gravatar imageflorian ( 2015-09-24 22:13:26 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-09-24 09:18:36 -0500

florian gravatar image

updated 2017-12-21 12:40:13 -0500

Have you already discovered the command sudo dnf history? You can use it to access a database with all previous transaction. Each transaction has an ID number (first column).

The history command knows the following sub-commands: list, info, redo, undo, rollback, userinstalled

Now, you can get a list of all user-installed packages.: sudo dnf history userinstalled.

You can also list all changes of a transaction: sudo dnf history list <i>, ie sudo dnf history list 1,

or get more info about the packages of a certain transaction:sudo dnf history info <i>, ie sudo dnf history info 4

To undo a complete transaction, you do: sudo dnf history undo <i>.

For more details about dnf type man dnf or dnf --help in your terminal. There is plenty more you can do with dnf...

edit flag offensive delete link more

Question Tools



Asked: 2015-09-24 07:18:41 -0500

Seen: 9,315 times

Last updated: Dec 21 '17