You might still be using the CentOS 8 operating system, which has reached its end-of-life at the end of 2021 and looking for another RHEL-based operating system to jump on. You can easily migrate from CentOS to AlmaLinux operating system by using the very easy-to-use tool developed by the AlmaLinux team. All you need is an SSH connection and a root user.
- Also, you may be interested in Best CentOS Alternatives.
Requirements
The bash script supports only the following operating systems:
- CentOS 8
- Oracle Linux 8
- RHEL 8
- Rocky Linux 8
- Control panels such as DirectAdmin, cPanel, and Plesk
Migrating from CentOS 8 to AlmaLinux
Update the system
If your system has pending updates, start the update by using the following commands:
dnf update
dnf upgrade
Download the script
You need to download the almalinux-deploy script developed by AlmaLinux with curl or wget; use the following command in the terminal:
curl -O https://raw.githubusercontent.com/AlmaLinux/almalinux-deploy/master/almalinux-deploy.sh
Set the permissions
As the download completes, run the below command and set file permissions:
chmod -v +x almalinux-deploy.sh
Run the script
After completing the previous steps, we can now run the script. Use the following command in the terminal to run the script:
sudo bash almalinux-deploy.sh
Migration is complete
If you are seeing “Migration to Almalinux is completed” in the terminal like in the image below, you are ready to use AlmaLinux. Congratulations!
Restart the system
As the last step, restart your system and use the following command to check the operating system in use:
hostnamectl