1package-cleanup(1)                                          package-cleanup(1)
2
3
4

NAME

6       package-cleanup  -  clean  up locally installed, duplicate, or orphaned
7       packages
8

SYNOPSIS

10       package-cleanup [options] <item ...>
11

DESCRIPTION

13       package-cleanup is a program  for  cleaning  up  the  locally-installed
14       RPMs.
15

GENERAL OPTIONS

17       -c <config file>
18              Use alternative config file (default is /etc/yum.conf).
19
20       -h, --help
21              Help; display a help message and then quit.
22
23       -q, --quiet
24              Print out nothing unnecessary.
25
26       -v, --version
27              Report program version and exit.
28
29       -y     Agree to anything asked.
30
31       --leaves
32              List  leaf nodes in the local RPM database.  Leaf nodes are RPMs
33              that are not relied upon by any other RPM.
34
35       --orphans
36              List installed packages which are not available  from  currently
37              configured repositories. This is identical to "yum list extras",
38              which may provide better output.
39
40       --oldkernels
41              Remove old kernel and kernel-devel packages.
42
43       --problems
44              List dependency problems in the local RPM database. If any prob‐
45              lems are found it will exit with an exit code of 1.
46
47       --dupes
48              Scan for duplicates in the local RPM database.
49
50       --cleandupes
51              Scan  for duplicates in the local RPM database and clean out the
52              older versions.
53
54       --count <COUNT>
55              Number of  duplicate/kernel  packages  to  keep  on  the  system
56              (default 2)
57

LEAVES OPTIONS

59       --all  When  listing  leaf  nodes  also  list  leaf  nodes that are not
60              libraries.
61
62       --leaf-regex
63              A package name that matches this regular expression will be con‐
64              sidered a leaf.
65
66       --exclude-devel
67              When listing leaf nodes do not list development packages.
68
69       --exclude-bin
70              When  listing  leaf nodes do not list packages with files in bin
71              directories.
72

OLDKERNELS OPTIONS

74       --keepdevel
75              Do not remove kernel-devel packages when removing kernels
76
77

EXAMPLES

79       List all dependency problems:
80              package-cleanup --problems
81
82       List all packages that are not in any Yum repository:
83              package-cleanup --orphans
84
85       Remove old kernels keeping 3  and  leaving  old  kernel-devel  packages
86       installed:
87              package-cleanup --oldkernels --count=3 --keepdevel
88
89       List  all  leaf  packages  with  no files in a bin directory whose name
90       begins with either 'perl' or 'python':
91              package-cleanup              --leaves              --exclude-bin
92              --leaf-regex="^(perl)|(python)"
93

FILES

95       As  package-cleanup  uses YUM libraries for retrieving all the informa‐
96       tion, it relies on YUM configuration for its default values like  which
97       repositories to use. Consult YUM documentation for details:
98
99       /etc/yum.conf
100       /etc/yum/repos.d/
101       /var/cache/yum/
102
103

SEE ALSO

105       yum.conf (5)
106       http://yum.baseurl.org/
107
108

AUTHORS

110       See the Authors file included with this program.
111
112

BUGS

114       There  are of course no bugs, but should you find any, you should first
115       consult the  FAQ  section  on  http://yum.baseurl.org/wiki/Faq  and  if
116       unsuccessful  in  finding  a  resolution contact the mailing list: yum-
117       devel@lists.baseurl.org.  To file a bug use  http://bugzilla.redhat.com
118       for  Fedora/RHEL/Centos  related bugs and http://yum.baseurl.org/report
119       for all other bugs.
120
121
122
123Gijs Hollestelle               03 November 2005             package-cleanup(1)
Impressum