Atlantic.Net Blog

How to Migrate from CentOS 8 to Rocky Linux 8

Hitesh Jethva
by Atlantic.Net (273 posts) under Tutorials, VPS Hosting

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:

cat /etc/redhat-release


CentOS Linux release 8.4.2105

You can also verify it using the following command:

cat /etc/os-release


NAME="CentOS Linux"
ID_LIKE="rhel fedora"
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

Next, start the migration process using the following command:

bash  -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:

cat /etc/redhat-release

You should get the following output:

Rocky Linux release 8.4 (Green Obsidian)

You can also check it with the following command:

cat /etc/os-release


NAME="Rocky Linux"
VERSION="8.4 (Green Obsidian)"
ID_LIKE="rhel fedora"
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!

Get A Free To Use Cloud VPS

Free Tier Includes:
G3.2GB Cloud VPS Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year

Looking for a Hosting Solution?

We Provide Cloud, Dedicated, & Colocation.

  • Seven Global Data Center Locations.
  • Flexible Private, Public, & Hybrid Hosting.
  • 24x7x365 Security, Support, & Monitoring.
Contact Us Now! Med Tech Award FTC
SOC Audit HIPAA Audit HITECH Audit

Recent Posts

Get started with 12 months of free cloud VPS hosting

Free Tier includes:
G3.2GB Cloud VPS Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year

New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

Ashburn, VA

1807 Michael Faraday Ct,

Reston, VA 20190

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4


London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom