install
Is used to install the latest version of a package or group of
packages while ensuring that all dependencies are satisfied. If no
package matches the given package name(s), they are assumed to be a
shell glob and any matches are then installed. If the name starts
with an @ character the rest of the name is used as though passed
to the groupinstall command. If the name is a file, then install
works like localinstall. If the name doesn't match a package, then
package "provides" are searched (Eg. "_sqlitecache.so()(64bit)") as
are filelists (Eg. "/usr/bin/yum"). Also note that for filelists,
wildcards will match multiple packages.
update
If run without any packages, update will update every currently
installed package. If one or more packages or package globs are
specified, Yum will only update the listed packages. While updating
packages, yum will ensure that all dependencies are
satisfied. If the packages or globs specified match to packages
which are not currently installed then update will not install
them. update operates on groups, files, provides and filelists just
like the "install" command.
If the main obsoletes configure option is true (default) or the
--obsoletes flag is present yum will include package
obsoletes in its calculations - this makes it better for
distro-version changes, for example: upgrading from somelinux 8.0
to somelinux 9.
check-update
Implemented so you could know if your machine had any updates
that needed to be applied without running it interactively. Returns
exit value of 100 if there are packages available for an update.
Also returns a list of the packages to be updated in list format.
Returns 0 if no packages are available for update. Returns 1 if an
error occurred. Running in verbose mode also shows obsoletes.
upgrade
Is the same as the update command with the --obsoletes flag
set. See update for more details.
remove or erase
Are used to remove the specified packages from the system as
well as removing any packages which depend on the package being
removed. remove operates on groups, files, provides and filelists
just like the "install" command.
list
Is used to list various information about available packages;
more complete details are available in the List Options
section below.
provides or whatprovides
Is used to find out which package provides some feature or
file. Just use a specific name or a file-glob-syntax wildcards to
list the packages available or installed that provide that feature
or file.
search
Is used to find any packages matching a string in the
description, summary and package name fields of an rpm. Useful for
finding a package you do not know by name but know by some word
related to it.
info
Is used to list a description and summary information about
available packages; takes the same arguments as in the List
Options section below.
clean
Is used to clean up various things which accumulate in the
yum cache directory over time. More complete details can be
found in the Clean Options section below.
makecache
Is used to download and make usable all the metadata for the
currently enabled yum repos.
groupinstall
Is used to install all of the individual packages in a group,
of the specified types (this works as if you'd taken each of those
package names and put them on the command line for a "yum install"
command).
The group_package_types configuration option specifies which types will
be installed.
groupupdate
Is just an alias for groupinstall, which will do the right
thing because "yum install X" and "yum update X" do the same thing,
when X is already installed.
grouplist
Is used to list the available groups from all yum repos.
Groups are marked as "installed" if all mandatory packages are
installed, or if a group doesn't have any mandatory packages then
it is installed if any of the optional or default package are
installed. The optional "hidden" argument will also list groups
marked as not being "user visible". If you pass the -v option, to
enable verbose mode, then the groupids are displayed.
groupremove
Is used to remove all of the packages in a group, unlike
"groupinstall" this will remove everything regardless of
group_package_types. It is worth pointing out that packages can be
in more than one group, so "groupinstall X Y" followed by
"groupremove Y" does not do give you the same result as
"groupinstall X".
groupinfo
Is used to give the description and package list of a group
(and which type those packages are marked as). Note that you can
use the yum-filter-data and yum-list-data plugins to get/use the
data the other way around (Ie. what groups own packages need
updating). If you pass the -v option, to enable verbose mode, then
the package names are matched against installed/available packages
similar to the list command.
shell
Is used to enter the 'yum shell', when a filename is specified
the contents of that file is executed in yum shell mode. See
resolvedep
Is used to list packages providing the specified dependencies,
at most one package is listed per dependency.
localinstall
Is used to install a set of local rpm files. If required the
enabled repositories will be used to resolve dependencies. Note
that the install command will do a local install, if given a
filename.
localupdate
Is used to update the system by specifying local rpm files.
Only the specified rpm files of which an older version is already
installed will be installed, the remaining specified packages will
be ignored. If required the enabled repositories will be used to
resolve dependencies. Note that the update command will do a local
install, if given a filename.
reinstall
Will reinstall the identically versioned package as is
currently installed. This does not work for "installonly" packages,
like Kernels. reinstall operates on groups, files, provides and
filelists just like the "install" command.
downgrade
Will try and downgrade a package from the version currently
installed to the previously highest version (or the specified
version). The depsolver will not necessarily work, but if you
specify all the packages it should work (and thus. all the simple
cases will work). Also this does not work for "installonly"
packages, like Kernels. downgrade operates on groups, files,
provides and filelists just like the "install" command.
deplist
Produces a list of all dependencies and what packages provide
those dependencies for the given packages.
repolist
Produces a list of configured repositories. The default is to
list all enabled repositories. If you pass -v, for verbose mode,
more information is listed.
version
Produces a "version" of the rpmdb, and of the enabled
repositories if "all" is given as the first argument. You can also
specify version groups in the version-groups config. file. If you
pass -v, for verbose mode, more information is listed. The version
is calculated by taking a sha1 hash of the packages (in sorted
order), and the checksum_type/checksum_data entries from the yumdb.
Note that this rpmdb version is now also used significantly within
yum (esp. in yum history).
history
The history command allows the user to view what has happened
in past transactions (assuming the history_record config. option is
set). You can use info/list/summary to view what happened,
undo/redo to act on that information and new to start a new history
file.
The info/list/summary commands take either a transactions id or
a package (with wildcards, as in Specifying package names),
all three can also be passed no arguments. list can be passed the
keyword "all" to list all the transactions. undo/redo just take a
transaction id.
help
Produces help, either for all commands or if given a command
name then the help for that particular command.