How To Convert AlmaLinux 8 To Rocky Linux 8

In this article, we want to teach you How To Convert AlmaLinux 8 To Rocky Linux 8.

As you know, both Almalinux & Rocky Linux are based on RedHat Enterprise Linux with one-to-one binary compatibility.

If you want to switch from AlmaLinux to Rocky, the official developers of “Alma” provide a script that automates the migration process smoothly.

How To Convert AlmaLinux 8 To Rocky Linux 8

Before you start to convert AlmaLinux to Rocky Linux, you need to log in to your AlmaLinux server as a non-root user with sudo privileges. To do this, you can follow our article the Initial Server Setup with AlmaLinux 8.

Now you can follow the steps below to complete this guide.

Download Rocky Linux Migration Script on AlmaLinux 8

First, you need to update and upgrade your local package index with the following command:

sudo dnf -y update && sudo dnf upgrade

The migration script made available publicly by Rocky Linux developers can be used to easily start the switching process.

Install the curl tool on AlmaLinux 8 with the command below:

sudo dnf install curl -y

Then, download the Rocky migration script with the command below:

curl -o

Next, set the correct permissions for your downloaded file with the following command:

chmod +x

At this point, you can start to convert Almalinux to Rocky Linux.

Migrate from AlmaLinux 8 to Rocky Linux 8

First, you can check the options available for the script with the following command:

./ -h
migrate2rocky - Begin logging at Sun 01 May 2022 04:50:34 AM EDT.

Usage: [OPTIONS]

-h Display this help
-r Convert to rocky
-V Verify switch

To start the migration from AlmaLinux 8 to Rocky Linux 8, run the command below:

./ -r

This will take some time to complete.

In your output you will see:


Done, please reboot your system.
A log of this installation can be found at /var/log/migrate2rocky.log

When your conversion setup is completed, you need to reboot your server with the following command:


Then, check the Linux version of your system with the command below:

cat /etc/os-release

In your output you will see:

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


At this point, you learn to Convert AlmaLinux 8 To Rocky Linux 8 easily by a command terminal.

hope you enjoy it.

Also, you may be interested in this article about How To Convert Centos 8 to AlmaLinux 8.

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Stay informed and not overwhelmed, subscribe now!