LinuxReviws.org --get your your Linux knowledge
> Linux Reviews > Manual Pages (man) >

package-cleanup


  1. package-cleanup.1.man


1. package-cleanup.1.man

Manpage of package-cleanup

package-cleanup

Section: (1)
Updated: 2005 Nov 3
Index Return to Main Contents
 

NAME

package-cleanup  

SYNOPSIS

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

DESCRIPTION

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

 

GENERAL OPTIONS

-c <config file>
Use alternative config file (default is /etc/yum.conf).
-h, --help
Help; display a help message and then quit.
-q, --quiet
Print out nothing unecessary.
-v, --version
Report program version and exit.
-y
Agree to anything asked.
--leaves
List leaf nodes in the local RPM database. Leaf nodes are RPMs that are not relied upon by any other RPM.
--orphans
List installed packages which are not available from currenly configured repositories.
--oldkernels
Remove old kernel and kernel-devel packages.
--problems
List dependency problems in the local RPM database.
--dupes
Scan for duplicates in the local RPM database.
--cleandupes
Scan for duplicates in the local RPM database and clean out the older versions.

 

LEAVES OPTIONS

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

 

OLDKERNELS OPTIONS

--count <COUNT>
Number of kernel packages to keep on the system (default 2)
--keepdevel
Do not remove kernel-devel packages when removing kernels

 

EXAMPLES

List all dependency problems:
package-cleanup --problems
List all packages that are not in any Yum repository:
package-cleanup --orphans
Remove old kernels keeping 3 and leaving old kernel-devel packages installed:
package-cleanup --oldkernels --count=3 --keepdevel

List all leaf packages with no files in a bin directory whose name begins with either 'perl' or 'python':
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://linux.duke.edu/yum/

 

AUTHORS

See the Authors file included with this program.

 

BUGS

There of course aren't any bugs, but if you find any, they should be sent to the mailing list: yum@lists.linux.duke.edu or filed in bugzilla.


 

Index

NAME
SYNOPSIS
DESCRIPTION
GENERAL OPTIONS
LEAVES OPTIONS
OLDKERNELS OPTIONS
EXAMPLES
FILES
SEE ALSO
AUTHORS
BUGS

This document was created by man2html using the manual pages.
Time: 17:31:57 GMT, October 23, 2013

Meet new people