How to Convert from CentOS 8 to AlmaLinux OS

This element (ia-generated) isn't supported, or may require an update to be displayed. You can try to refresh the app.

Overview

This document explains how to convert a CentOS 8 server to an  AlmaLinux OS  server. AlmaLinux OS is the CloudLinux fork of Red Hat® Enterprise Linux®.
Important:
CentOS 8 reached End-of-Life (EOL) on December 31, 2021. For more information about our EOL policies, read our  Third Party Software End of Life Policy  and  cPanel Migration Services and Guides  documentation.

Convert your server to AlmaLinux OS

To convert your CentOS 8 server to use the AlmaLinux operating system, perform the following steps as the root user:
    .1Ensure that the server has the latest packages available:
dnf clean all
dnf -y update
    .2Reboot the server to make sure it boots the latest kernel:
reboot
    .3Download the almalinux-deploy script to your server:
curl -O https://raw.githubusercontent.com/AlmaLinux/almalinux-deploy/master/almalinux-deploy.sh
    .4Run the following command to convert your server to the AlmaLinux OS operating system:
bash almalinux-deploy.sh
    .5When the process is complete, check the output for any errors. The output may resemble the following example:
Complete!
Run dnf distro-sync -y OK
Restoring of alternatives is done OK
Generating grub configuration file
done
All Secure Boot related packages which were released by not AlmaLinux are reinstalled OK
Migration to AlmaLinux is completed
    .6Run the following command to verify that the installation is complete:
cat /etc/redhat-release
    .7Your results should resemble the following example:
AlmaLinux release 8.4 (Electric Cheetah)
    .8Run the following command to verify that the system boots the AlmaLinux OS kernel by default:
sudo grubby –info DEFAULT | grep AlmaLinux
    .9Your results should resemble the following example:
title="AlmaLinux (4.18.0-305.el8.x86_64) 8.4"
For more information about the conversion script, read the information in the  AlmaLinux GitHub  repository.