Yum Utils
Yum-utils is a collection of tools written using the Yum API, to do different kind of yum/rpm related tasks.
yumdownloader
This is a tool for downloading packages and their dependencies.
Example
yumdownloader --resolve --destdir=/tmp/pkg-dnl eclipse-platform
This command will download the eclipse-platform package and all dependencies to the /tmp/pkg-dnl directory.
Command line options
-h, --help show this help message and exit
--destdir=DESTDIR destination directory
(defaults to current directory)
--urls just list the urls it would download
instead of downloading
--resolve resolve dependencies and download
required packages
--source operate on source packages
-e REPO, --enablerepo=REPO
enable repository
package-cleanup
This tools is used to search the local RPM db for:
Duplicate packages (--dupes)
Dependency problems (--problems)
Leaf nodes (--leaves)
Orphans packages there no longer exists in the repos (--orphans)
And to remove old kernels.
Example
package-cleanup --dupes
this command show duplicate packages in the local RPM db.
Commandline Options:
-h, --help show this help message and exit
--problems List dependency problems in the local
RPM database
--leaves List leaf nodes in the local RPM database
--all When listing leaf nodes also list leaf
nodes that are not libraries
--orphans List installed packages which are not
available
from currenly configured repositories.
-q, --quiet Print out nothing unecessary
-y Agree to anything asked
-d, --dupes Scan for duplicates in your rpmdb
--oldkernels Remove old kernel and kernel-devel
packages
--count=KERNELCOUNT Number of kernel packages to keep on
the system (default 2)
--keepdevel Do not remove kernel-devel packages when
removing kernels
-c CONFFILE config file location