As you may be aware, CentOS has announced they will be discontinuing support for CentOS 8 on December 31, 2021 and discontinuing future development of new CentOS versions that track RedHat upstream releases.
Luckily, a new community enterprise operating system called Rocky Linux from the founder of CentOS has been introduced.
With the release of Rocky Linux 8.4, you can now easily migrate your CentOS 8 server to a fully compatible operating system that will continue to be free and fully supported for the long term.
- A CentOS 8 server on the Atlantic.Net Cloud Platform
- A root password configured on your server
Step 1 – Create Atlantic.Net Cloud Server
First, you’ll need to login to the Atlantic.Net Cloud Control Panel that has an existing CentOS 8 Cloud Server (or you could create a new one). Once your server is online, you’ll need to connect to your Cloud Server via SSH and log in using your credentials.
Step 2 – Update CentOS 8 Packages
Before starting, you will need to update all CentOS 8 packages to the latest versions. You can update them with the following command:
dnf update -y
Once all the packages are updated, restart your system to apply the update.
Next, verify your current operating system version using the following command:
CentOS Linux release 8.4.2105
You can also verify it using the following command:
PRETTY_NAME="CentOS Linux 8"
Step 3 – Upgrade CentOS 8 to Rocky Linux 8
Rocky Linux provides a migration script that helps you to convert an existing CentOS 8 system to Rocky Linux 8. You can download the migrate2rocky script from Rocky Linux’s Github repository using the following command:
Once the script is downloaded, set the execution permission with the following command:
chmod +x migrate2rocky.sh
Next, start the migration process using the following command:
bash migrate2rocky.sh -r
Once the migration process has been completed, you should get the following output:
Done, please reboot your system.
A log of this installation can be found at /var/log/migrate2rocky.log
Next, restart your system to apply the migration.
Step 4 – Verify Rocky Linux 8 Migration
After restarting the system, you can verify whether CentOS 8 was migrated successfully to Rocky Linux 8.
You can check it with the following command:
You should get the following output:
Rocky Linux release 8.4 (Green Obsidian)
You can also check it with the following command:
VERSION="8.4 (Green Obsidian)"
PRETTY_NAME="Rocky Linux 8.4 (Green Obsidian)"
In this post, you learned how to migrate CentOS 8 to Rocky Linux 8. You can now start using the Rocky Linux 8.4. Try it on your CentOS 8 Atlantic.Net VPS today!