Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

dnf autoremove looks at all packages which are not required by other packages, then it tests a flag saying if this package has been user installed, that is, not just been pulled in by a dependency. This has been shown to be rather unreliable, especially when packages have been installed by Gnome Software, or PackageKit. They are trying to fix that for quite some time.

What you can do is

dnf mark install \*

which will mark each installed package as user installed, and the autoremove would then not remove anything.

Also, install python2-dnf-plugin-leaves and python2-dnf-plugin-show-leaves so you can run

dnf leaves

to get a list of packages you might consider removing. The leaves are packages not required by any other packages.

dnf autoremove looks at all packages which are not required by other packages, then it tests a flag saying if this package has been user installed, that is, not just been pulled in by a dependency. This has been shown to be rather unreliable, especially when packages have been installed by Gnome Software, or PackageKit. They are trying to fix that for quite some time.

What you can do is

dnf mark install \*

which will mark each installed package as user installed, and the autoremove would then not remove anything.

Also, install python2-dnf-plugin-leavespython3-dnf-plugin-leaves and python2-dnf-plugin-show-leavespython3-dnf-plugin-show-leaves so you can run

dnf leaves

to get a list of packages you might consider removing. The leaves are packages not required by any other packages.