Here is a step by step guide with instructions, code and screenshots:
1. Check the version of CentOS
$ cat /etc/redhat-release
CentOS Linux release 8.5.2111
2\. Retrieve the migration shell script from Github
$ curl -O https://raw.githubusercontent.com/AlmaLinux/almalinux-deploy/master/almalinux-deploy.sh
3\. Run the script and check its output for errors and migration status / messages:
$ sudo bash almalinux-deploy.sh
4\. You will see the message “Migration to AlmaLinux is completed” if everything goes well
...
Complete!
All Secure Boot related packages which were not released by AlmaLinux are reinstalledOK
BootCurrent: 0007
Timeout: 5 seconds
BootOrder: 0002,0007,0003,0004,0001,0000
Boot0000 FreeBSD
Boot0001* UEFI: Built-in EFI Shell
Boot0003* UEFI: PXE IPv4 Intel(R) Network 18:C0:4D:8D:A1:B5
Boot0004* UEFI: PXE IPv4 Intel(R) Network 18:C0:4D:8D:A1:B6
Boot0007* CentOS Linux
Boot0002* AlmaLinuxThe new EFI boot record for AlmaLinux is added
OK
Migration to AlmaLinux is completed
5\. Check the migration to ensure that your system was successfully converted by running the 2 commands below:
$ cat /etc/redhat-release
AlmaLinux release 8.5 (Arctic Sphynx)
and
$ sudo grubby --info DEFAULT | grep
title="AlmaLinux (4.18.0-348.el8.aarch64) 8.5 (Arctic Sphynx)"
6\. Reboot the system by:
sudo reboot
7\. When the system is starting to load the boot menu, you should see AlmaLinux as the first item on the menu:
With that you are done and fully migrated to Alma Linux!
Be sure to check back, our next blog “Migrate CentOS 7 to AlmaLinux, Rocky Linux, Oracle, CentOS Stream 8” is coming soon.
Source: GitHub - AlmaLinux/almalinux-deploy: EL to AlmaLinux migration tool.