1package-cleanup(1) package-cleanup(1)
2
3
4
6 package-cleanup
7
9 package-cleanup [options] <item ...>
10
12 package-cleanup is a program for cleaning up the locally-installed
13 RPMs.
14
16 -c <config file>
17 Use alternative config file (default is /etc/yum.conf).
18
19 -h, --help
20 Help; display a help message and then quit.
21
22 -q, --quiet
23 Print out nothing unecessary.
24
25 -v, --version
26 Report program version and exit.
27
28 -y Agree to anything asked.
29
30 --leaves
31 List leaf nodes in the local RPM database. Leaf nodes are RPMs
32 that are not relied upon by any other RPM.
33
34 --orphans
35 List installed packages which are not available from currenly
36 configured repositories. This is identical to "yum list extras",
37 which may provide better output.
38
39 --oldkernels
40 Remove old kernel and kernel-devel packages.
41
42 --problems
43 List dependency problems in the local RPM database. If any prob‐
44 lems are found it will exit with an exit code of 1.
45
46 --dupes
47 Scan for duplicates in the local RPM database.
48
49 --cleandupes
50 Scan for duplicates in the local RPM database and clean out the
51 older versions.
52
54 --all When listing leaf nodes also list leaf nodes that are not
55 libraries.
56
57 --leaf-regex
58 A package name that matches this regular expression will be con‐
59 sidered a leaf.
60
61 --exclude-devel
62 When listing leaf nodes do not list development packages.
63
64 --exclude-bin
65 When listing leaf nodes do not list packages with files in bin
66 directories.
67
69 --count <COUNT>
70 Number of kernel packages to keep on the system (default 2)
71
72 --keepdevel
73 Do not remove kernel-devel packages when removing kernels
74
75
77 List all dependency problems:
78 package-cleanup --problems
79
80 List all packages that are not in any Yum repository:
81 package-cleanup --orphans
82
83 Remove old kernels keeping 3 and leaving old kernel-devel packages
84 installed:
85 package-cleanup --oldkernels --count=3 --keepdevel
86
87 List all leaf packages with no files in a bin directory whose name
88 begins with either 'perl' or 'python':
89 package-cleanup --leaves --exclude-bin --leaf-
90 regex="^(perl)|(python)"
91
93 As package-cleanup uses YUM libraries for retrieving all the informa‐
94 tion, it relies on YUM configuration for its default values like which
95 repositories to use. Consult YUM documentation for details:
96
97 /etc/yum.conf
98 /etc/yum/repos.d/
99 /var/cache/yum/
100
101
103 yum.conf [4m(5)
104 http://yum.baseurl.org/
105
106
108 See the Authors file included with this program.
109
110
112 There are of course no bugs, but should you find any, you should first
113 consult the FAQ section on http://yum.baseurl.org/wiki/Faq and if
114 unsuccessful in finding a resolution contact the mailing list: yum-
115 devel@lists.baseurl.org. To file a bug use http://bugzilla.redhat.com
116 for Fedora/RHEL/Centos related bugs and http://yum.baseurl.org/report
117 for all other bugs.
118
119
120
121Gijs Hollestelle 03 November 2005 package-cleanup(1)