Convert/Migrate from CentOS 8 to AlmaLinux 8 – Official Script

CentOS 8 will reach End of Life (EOL) on all systems on December 31, 2021. This means that after this date, CentOS will no longer provide bug, security, or feature updates to CentOS 8. I encourage you in this post to migrate to AlmaLinux 8 before December 31, 2021, and here are the easy steps that help you to do the migration from CentOS 8 to A AlmaLinux 8.

In order to convert your EL8 operating system to AlmaLinux do the following:

1- Make a backup of the system if something goes wrong you will have a restore point.
2- Download the script:

curl -O

3- Run the script and check its output for errors:

Run dnf distro-sync -y OK
Restoring of alternatives is done OK
Generating grub configuration file …
All Secure Boot related packages which were released by not AlmaLinux are reinstalled OK
Migration to AlmaLinux is completed

4- Ensure that your system was successfully converted, check the release file.

# check release file
$ cat /etc/redhat-release 
AlmaLinux release 8.4 (Electric Cheetah)

# check that the system boots AlmaLinux kernel by default
$ sudo grubby --info DEFAULT | grep AlmaLinux
title="AlmaLinux (4.18.0-305.el8.x86_64) 8.4"

More information about EL to AlmaLinux migration tool is available in the AlmaLinux GitHub here:

Leave a Comment