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.
Alternatively, the Ansible yum module can be used to automate the process of managing packages.