Hosting or Servers Logo
How to Update Centos 8 Server
Linux on Monitor

Updating a Centos 8 server takes only a few simple command lines. Open a terminal to your server and enter the following lines waiting for each to finish before entering the next command.

Update the DNF package repository.

dnf makecache

This downloads and caches the latest metadata for any enabled repositories. This is only really necessary if the metadata is outdated.

Picture of terminal with command dnf makecache showing

Check for any updates.

dnf check-update

This will check to see if there are any updates available for the software installed on the server.

Picture of terminal with command dnf check-update showing

Update the server

dnf update or dnf upgrade

These commands will both download and install any available updates to the server. Either command can be used according to personal preference.

Picture of terminal with command dnf upgrade showing

The server should now be fully updated and ready for you to proceed to install or set up new software. Keeping the server updated will also help keep the server as secure as possible.

You Are Leaving Us

This link is being provided as a convenience and for informational purposes only it is not an endorsement or an approval of any of the products, services or opinions of the corporation or organization or individual. bears no responsibility for the accuracy, legality or content of the external site or for that of subsequent links.