YUM - Update a package

by
Jeremy Canfield |
Updated: May 14 2023
| YUM articles
The yum update command is used to update a package. In this example, the latest version of the wget package is already installed on the system, thus the wget package will not be updated.
yum update wget
. . .
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirrors.tds.net
* centos-sclo-rh: mirror.cs.uwp.edu
* centos-sclo-sclo: mirror.cs.uwp.edu
* extras: bay.uchicago.edu
* updates: repos.hou.layerhost.com
No packages marked for update
Following are commonly used yum commands.
- yum search (display information about a package)
- yum info (display information about a package)
- yum list (list installed and available packages)
- yum provides (determine the package that provides a file)
- yumdownloader (download a package)
- yum install (install a package)
- yum update (update a package)
- yum remove or yum erase (uninstall a package)
Alternatively, the Ansible yum module can be used to automate the process of managing packages.
Did you find this article helpful?
If so, consider buying me a coffee over at