Scroll to navigation

package-cleanup(1) package-cleanup(1)

NAME

package-cleanup

SYNOPSIS

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

DESCRIPTION

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

GENERAL OPTIONS

Use alternative config file (default is /etc/yum.conf).
Help; display a help message and then quit.
Print out nothing unecessary.
Report program version and exit.
Agree to anything asked.
List leaf nodes in the local RPM database. Leaf nodes are RPMs that are not relied upon by any other RPM.
List installed packages which are not available from currenly configured repositories. This is identical to "yum list extras", which may provide better output.
Remove old kernel and kernel-devel packages.
List dependency problems in the local RPM database. If any problems are found it will exit with an exit code of 1.
Scan for duplicates in the local RPM database.
Scan for duplicates in the local RPM database and clean out the older versions.
Number of duplicate packages to keep on the system (default 2)

LEAVES OPTIONS

When listing leaf nodes also list leaf nodes that are not libraries.
A package name that matches this regular expression will be considered a leaf.
When listing leaf nodes do not list development packages.
When listing leaf nodes do not list packages with files in bin directories.

OLDKERNELS OPTIONS

Do not remove kernel-devel packages when removing kernels

EXAMPLES

package-cleanup --problems
package-cleanup --orphans
package-cleanup --oldkernels --count=3 --keepdevel
package-cleanup --leaves --exclude-bin --leaf-regex="^(perl)|(python)"

FILES

As package-cleanup uses YUM libraries for retrieving all the information, it relies on YUM configuration for its default values like which repositories to use. Consult YUM documentation for details:

/etc/yum.conf
/etc/yum/repos.d/
/var/cache/yum/

SEE ALSO

yum.conf (5)
http://yum.baseurl.org/

AUTHORS

See the Authors file included with this program.

BUGS

There are of course no bugs, but should you find any, you should first consult the FAQ section on http://yum.baseurl.org/wiki/Faq and if unsuccessful in finding a resolution contact the mailing list: yum-devel@lists.baseurl.org. To file a bug use http://bugzilla.redhat.com for Fedora/RHEL/Centos related bugs and http://yum.baseurl.org/report for all other bugs.

03 November 2005 Gijs Hollestelle