What is the latest version of CentOS?
CentOS is a popular derivative of the Red Hat Enterprise Linux distribution. CentOS 8 is the new version.
CentOS 7.7 is a latest update for version 7 and was published in September 2019. It includes updates and changes, including support for newer software and server technology.
This guide will walk you through upgrading and updating the current version to the latest CentOS release, how to update all packages in Linux? and what is the yum update command?
- Access to a command line
- Access to a user account with root user privileges.
- The yum package manager, included by default
Upgrade CentOS to Latest Version: 6 Easy Steps
Step 1: Check current CentOS version
Check the version of your current release with the command:
The system should display the CentOS Linux release version. Make sure the first number is at least 7.x.x.
Step 2: Verify data and backups
Backing up important server data should be done before running a operating system upgrade. Take a moment to verify your system backups.
Step 3: Check for available updates
Check available CentOS updates with the command:
The system will display a list of available updates, including the core operating system updates. Scan through these to make sure everything is in order.
A good habit is to scan for software that you’ve specifically configured or installed. If you see a familiar package listed, it can indicate that there are updates or changes you’ll want to be aware of. You can research the upgrades to software packages as needed, depending on your system configuration.
Step 4: Package manager cleanup
As the yum package manager updates your system and software, it accumulates additional listings and downloaded data.
To clear these out of your system use the terminal command:
yum clean all
Reboot the server with:
This will clear the caches and lists in the local yum repositories. This can help speed the update process, and it can also help prevent issues.
Step 5: Update CentOS with yum update command
Enter the command into the terminal:
The system should give you a listing of the packages to be downloaded, as well as the disk space required. The system will prompt you to confirm this is OK – press y, and the system will continue with the download and installation.
Note: CentOS 7.7 is a relatively minor release, so the process for updating is fairly straightforward. If you were installing a major update – say, CentOS 6.3 to CentOS 7.7, the process is much more involved.
Step 6: Verify current CentOS version
To verify the current version on CentOS, enter the command into the terminal:
The system should display CentOS Linux release 7.7.x is running on the web server.
If you’ve followed along, you should have an updated version of CentOS 7.7.
You can find more detailed instructions and release notes on the CentOS documentation page. Since CentOS is designed around stability and reliability, it is unlikely that this release will cause any significant problems with your configuration.