Name
yum — stdin stdout - file -- opt --help --version
Synopsis
yum [options] [packages]
yum is a popular package
manager for RPM packages (.rpm
files) found on Red Hat Enterprise Linux, Fedora, CentOS, and other
distros. It is primarily a command-line tool, though you may
encounter graphical front-ends for yum, such as PackageKit on Fedora
Linux.
The following table lists common operations with yum. For operations on local files, which
yum does not provide, we use the
rpm command directly.
|
Action |
yum command |
|---|---|
|
Search for a package that meets your needs (supports wildcards * and ?). |
yum search command_name |
|
Check if a package is installed. |
yum list installed
|
|
Download a package
but don’t install it. This requires installing the
yum install yum-downloadonly |
yum --downloadonly install
|
|
Download and install a package. |
yum install
|
|
Install a package file. |
rpm -ivh
|
|
Learn about a package. |
yum info
|
|
List the contents of a package. |
rpm -ql
|
|
Discover which package an installed file belongs to. |
yum provides
|
|
Update an installed package. |
yum update
|
|
Remove an installed package. |
yum remove
|
|
List all packages installed on the system. |
yum list installed | less |
|
Check for updates for all packages on the system. |
yum check-update |
|
Update all packages on the system. |
yum update |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access