Mit Hilfe von YUM lassen sich auf einfache Weise RPM-Pakete installieren, deinstallieren oder auflisten. Abfragen von Abhängigkeiten oder Suchen nach bestimmten RPM-Paketen sind ebenso leicht möglich.
Welche Kommandos und Optionen YUM bereit stellt, kann mit Hilfe des Kommandos „yum help“ online angezeigt werden:
aix01 # yum help
Usage: yum [options] COMMAND
List of Commands:
check Check for problems in the rpmdb
check-update Check for available package updates
clean Remove cached data
deplist List a package's dependencies
distribution-synchronization Synchronize installed packages to the latest available versions
downgrade downgrade a package
erase Remove a package or packages from your system
groups Display, or use, the groups information
help Display a helpful usage message
history Display, or use, the transaction history
info Display details about a package or group of packages
install Install a package or packages on your system
list List a package or groups of packages
load-transaction load a saved transaction from filename
makecache Generate the metadata cache
provides Find what package provides the given value
reinstall reinstall a package
repolist Display the configured software repositories
resolvedep Determine which package provides the given dependency
search Search package details for the given string
shell Run an interactive yum shell
update Update a package or packages on your system
upgrade Update packages taking obsoletes into account
version Display a version for the machine and/or available repos.
Options:
-h, --help show this help message and exit
…
aix01 #
Die Syntax der einzelnen Kommandos lässt sich ebenfalls anzeigen, indem man den gewünschten Kommando-Namen einfach nach dem Kommando „help“ angibt, z.B. „yum help update„.