How To Check & Install Updates on CentOS

We explain how to check updates, update a single package or all with Yum and update in a general way the CentOS 7 System.

Check Updates in CentOS

To check if there are updates available for the packages installed in CentOS 7, it will be necessary to use the package manager YUM with the check-update subcommand; this helps us to see all package updates of all the repositories, if there is one available in time real, we will execute the following:

yum check-update

When running this command, all the names of the packages with their respective available version and type of task will be loaded:

Update a Single Package in CentOS

To update a single package to the latest available version, just execute the following command:

yum epate httpd

In this example, we will use yum to try to update the httpd package; the result will be the following:

Once we pass the respective tests, we can proceed with the approval of download and installation of the packages of the said package.

Update Packages with Yum on CentOS

Another option we have in CentOS is to update a group of packages at a time, for this we can use the following command with the respective packages:

yum epate "Development Tools"

In this case, we have selected this option to update the development tools at one time (compiler C and C ++ plus related utilities).

General System Update in CentOS

To update all the operating system software, as well as its dependencies to the latest version, we can use the following command:

yum epate

There we have the global list of packages that must be updated in CentOS.

In this way, it is possible to verify and install the available updates for CentOS.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *