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       --removenewestdupes
55              Remove the newest dupes instead of the oldest dupes when  clean‐
56              ing duplicates.
57
58       --noscripts
59              Disable rpm scriptlets from running when cleaning duplicates.
60
61       --count <COUNT>
62              Number  of  duplicate/kernel  packages  to  keep  on  the system
63              (default 2)
64

LEAVES OPTIONS

66       --all  When listing leaf nodes  also  list  leaf  nodes  that  are  not
67              libraries.
68
69       --leaf-regex
70              A package name that matches this regular expression will be con‐
71              sidered a leaf.
72
73       --exclude-devel
74              When listing leaf nodes do not list development packages.
75
76       --exclude-bin
77              When listing leaf nodes do not list packages with files  in  bin
78              directories.
79

OLDKERNELS OPTIONS

81       --keepdevel
82              Do not remove kernel-devel packages when removing kernels
83
84

EXAMPLES

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

FILES

102       As package-cleanup uses YUM libraries for retrieving all  the  informa‐
103       tion,  it relies on YUM configuration for its default values like which
104       repositories to use. Consult YUM documentation for details:
105
106       /etc/yum.conf
107       /etc/yum/repos.d/
108       /var/cache/yum/
109
110

SEE ALSO

112       yum.conf (5)
113       http://yum.baseurl.org/
114
115

AUTHORS

117       See the Authors file included with this program.
118
119

BUGS

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