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:

wget https://raw.githubusercontent.com/rocky-linux/rocky-tools/main/migrate2rocky/migrate2rocky.sh

chmod +x migrate2rocky.sh

bash migrate2rocky.sh  -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

reboot

Check Output with the below command:

cat /etc/os-release 

Output:

NAME="Rocky Linux"
VERSION="8.5 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.5"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.5 (Green Obsidian)"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky Linux"
ROCKY_SUPPORT_PRODUCT_VERSION="8"

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).


CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!

1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month

Available Locations: LAX | MIA | ATL | FRA | AMS