package-cleanup man page

package-cleanup ā€” clean up locally installed, duplicate, or orphaned packages.

A DNF-based shim imitating the original YUM-based package-cleanup utility.

Synopsis

package-cleanup [options]

Options

--leaves

List leaf nodes in the local RPM database. Leaf nodes are RPMs that are not relied upon by any other RPM. Maps to dnf repoquery --unneeded.

--orphans

List installed packages which are not available from currently configured repositories. Maps to dnf repoquery --extras.

--problems

List dependency problems in the local RPM database. Maps to dnf repoquery --unsatisfied.

--dupes

Scan for duplicates in the local RPM database. Maps to dnf repoquery --duplicates.

--cleandupes

Scan for duplicates in the local RPM database and clean out the older versions. Maps to dnf remove --duplicates.

Examples

package-cleanup --problems

List all dependency problems.

package-cleanup --orphans

List all packages that are not in any DNF repository.

package-cleanup --cleandupes

Remove all packages that have a duplicate installed.

Author

See AUTHORS in your Core DNF Plugins distribution

Referenced By

dnf-utils(1), yum-deprecated(8).

Nov 22, 2018 4.0.2 dnf-plugins-core