How to Migrate from CentOS 8 to Rocky Linux 8

Rocky Linux is a Linux distribution that is intended to be a downstream, complete binary-compatible release using the Red Hat Enterprise Linux (RHEL) operating system source code. The project aims to provide a community-supported, production-grade enterprise operating system. With the release of Rocky Linux 8.5, a conversion tool has been made available to help you migrate from CentOS 8 to Rocky Linux.

Checkout the Rocky Linux Project Here.

Try this wiki on our VPS. Starting at just $5/month with 24x7 In-house customer support.

Pre-requisites :

  • A system with CentOS 8 installed and running.

  • root access to the system.

Migration from CentOS 8 to Rocky Linux 8.5

It's always a good idea to back up all your files before switching to Rocky Linux 8.5, or any other operating system for that matter, so you're not caught off guard if something goes wrong.

For converting CentOS 8 to Rocky Linux 8.5 use the below commands:


chmod +x

bash  -r

The script starts by recognizing all of the CentOS Linux 8 to Rocky Linux 8 repositories. It then replaces CentOS 8 Linux packages and repositories with their Rocky Linux 8.5 counterparts.

After completing the migration process, Continue with the below command


Check Output with the below command:

cat /etc/os-release 


NAME="Rocky Linux"
VERSION="8.5 (Green Obsidian)"
ID_LIKE="rhel centos fedora"
PRETTY_NAME="Rocky Linux 8.5 (Green Obsidian)"

That's all there is to it. You can now enjoy the stability and other benefits of Rocky Linux for free, just as you did with CentOS Linux System.

Now you have successfully migrated from CentOS 8 to Rocky Linux 8.5 (Green Obsidian).