1PACKAGE-CLEANUP(1) dnf-plugins-core PACKAGE-CLEANUP(1)
2
3
4
6 package-cleanup - clean up locally installed, duplicate, or orphaned
7 packages.
8
9 A DNF-based shim imitating the original YUM-based package-cleanup util‐
10 ity.
11
13 package-cleanup [options]
14
16 All general DNF options are accepted, see Options in dnf(8) for de‐
17 tails.
18
19 --leaves
20 List leaf nodes in the local RPM database. Leaf nodes are RPMs
21 that are not relied upon by any other RPM. Maps to dnf repo‐
22 query --unneeded.
23
24 --orphans
25 List installed packages which are not available from currently
26 configured repositories. Maps to dnf repoquery --extras.
27
28 --problems
29 List dependency problems in the local RPM database. Maps to dnf
30 repoquery --unsatisfied.
31
32 --dupes
33 Scan for duplicates in the local RPM database. Maps to dnf re‐
34 poquery --duplicates.
35
36 --cleandupes
37 Scan for duplicates in the local RPM database and clean out the
38 older versions. Maps to dnf remove --duplicates.
39
41 package-cleanup --problems
42 List all dependency problems.
43
44 package-cleanup --orphans
45 List all packages that are not in any DNF repository.
46
47 package-cleanup --cleandupes
48 Remove all packages that have a duplicate installed.
49
51 See AUTHORS in your Core DNF Plugins distribution
52
54 2023, Red Hat, Licensed under GPLv2+
55
56
57
58
594.4.4 Dec 08, 2023 PACKAGE-CLEANUP(1)