CentOS 8 and other EL8 servers can be converted to use CloudLinux's fork of RHEL, AlmaLinux. CentOS 8 is currently slated for End-of-Life status on December 31, 2021.
Note: CentOS 8 repositories have been vaulted by Redhat. The repository URL will need to be updated to connect to the package update system. To do this, edit the repo config file:
Modify the following line from
vault.centos.org and save the file.
Ensure the server has the latest packages available:
# dnf clean all
# dnf -y update
We also suggest rebooting the server to ensure that the latest kernel is loaded. This step can be skipped if the loaded kernel is verified to be the latest one.
Download the almalinux-deploy script:
# curl -O https://raw.githubusercontent.com/AlmaLinux/almalinux-deploy/master/almalinux-deploy.sh
Run the script:
# bash almalinux-deploy.sh
Wait for the process to complete, check 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
Verify that the installation is complete:
Check release file
# cat /etc/redhat-release
AlmaLinux release 8.4 (Electric Cheetah)
Check that the system boots AlmaLinux kernel by default
# grubby --info DEFAULT | grep AlmaLinux
title="AlmaLinux (4.18.0-305.el8.x86_64) 8.4"
More information about the conversion script is available in the AlmaLinux GitHub here: