package-cleanup(1) - Linux man page

Name

package-cleanup

Synopsis

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

Description

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

General Options

-v, --version

Report program version and exit.
-h, --help
Help; display a help message and then quit.
-q, --quiet
Print out nothing unecessary.
-y

Agree to anything asked.

-c <config file>
Use alternative config file (default is /etc/yum.conf).
--problems
List dependency problems in the local RPM database.
--leaves
List leaf nodes in the local RPM database. Leaf nodes are RPMs that are not relied upon by any other RPM.
--problems
List dependency problems in the local RPM database.
--orphans
List installed packages which are not available from currenly configured repositories.
--oldkernels
Remove old kernel and kernel-devel packages.

Leaves Options

--all

When listing leaf nodes also list leaf nodes that are not libraries.

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

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.

Referenced By

yum-utils(1)