Debian Codegraph @

upstream/fedora-44/man1/package-cleanup.1

raw
1 .\" Man page generated from reStructuredText
2 .\" by the Docutils 0.22.4 manpage writer.
3 .
4 .
5 .nr rst2man-indent-level 0
6 .
7 .de1 rstReportMargin
8 \\$1 \\n[an-margin]
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
11 -
12 \\n[rst2man-indent0]
13 \\n[rst2man-indent1]
14 \\n[rst2man-indent2]
15 ..
16 .de1 INDENT
17 .\" .rstReportMargin pre:
18 . RS \\$1
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
22 ..
23 .de UNINDENT
24 . RE
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30 ..
31 .TH "PACKAGE-CLEANUP" "1" "Feb 25, 2026" "4.10.1" "dnf-plugins-core"
32 .SH NAME
33 package-cleanup \- clean up locally installed, duplicate, or orphaned packages.
34 .sp
35 A DNF\-based shim imitating the original YUM\-based package\-cleanup utility.
36 .SH SYNOPSIS
37 .sp
38 \fBpackage\-cleanup [options]\fP
39 .SH OPTIONS
40 .sp
41 All general DNF options are accepted, see \fIOptions\fP in \fBdnf(8)\fP for details.
42 .INDENT 0.0
43 .TP
44 .B \fB\-\-leaves\fP
45 List leaf nodes in the local RPM database.
46 Leaf nodes are RPMs that are not relied upon by any other RPM.
47 Maps to \fBdnf repoquery \-\-unneeded\fP\&.
48 .TP
49 .B \fB\-\-orphans\fP
50 List installed packages which are not available from currently configured
51 repositories.
52 Maps to \fBdnf repoquery \-\-extras\fP\&.
53 .TP
54 .B \fB\-\-problems\fP
55 List dependency problems in the local RPM database.
56 Maps to \fBdnf repoquery \-\-unsatisfied\fP\&.
57 .TP
58 .B \fB\-\-dupes\fP
59 Scan for duplicates in the local RPM database.
60 Maps to \fBdnf repoquery \-\-duplicates\fP\&.
61 .TP
62 .B \fB\-\-cleandupes\fP
63 Scan for duplicates in the local RPM database and clean out the older
64 versions.
65 Maps to \fBdnf remove \-\-duplicates\fP\&.
66 .UNINDENT
67 .SH EXAMPLES
68 .INDENT 0.0
69 .TP
70 .B \fBpackage\-cleanup \-\-problems\fP
71 List all dependency problems.
72 .TP
73 .B \fBpackage\-cleanup \-\-orphans\fP
74 List all packages that are not in any DNF repository.
75 .TP
76 .B \fBpackage\-cleanup \-\-cleandupes\fP
77 Remove all packages that have a duplicate installed.
78 .UNINDENT
79 .SH Author
80 See AUTHORS in your Core DNF Plugins distribution
81 .SH Copyright
82 2014, Red Hat, Licensed under GPLv2+
83 .\" End of generated man page.