AlmaLinux is a free and open source Linux distribution, created originally by CloudLinux to provide a community-supported, production-grade enterprise operating system that is binary-compatible with Red Hat Enterprise Linux.
![](https://unixcop.com/wp-content/uploads/2022/01/pic1-6.png)
Prerequisites:
Backup project and important files/directories:
Take a full backup of your important config files, directories, project files and databases etc. So, if something goes wrong, we should be able to go back quickly.
Step # 1: Installing all updates on CentOS 8.
First, make sure all the existing packages on your system are up to date.
dnf update
![](https://unixcop.com/wp-content/uploads/2022/01/pic2-6.png)
![](https://unixcop.com/wp-content/uploads/2022/01/pic3-6.png)
Now, verify CentOS Linux 8 version.
cat/etc/redhat-release
OR
cat/etc/centos-release
![](https://unixcop.com/wp-content/uploads/2022/01/pic4-7.png)
Step # 2: Download the Almalinux deploy script.
Download the almalinux-deploy.sh script using the wget or curl command, type:
![](https://unixcop.com/wp-content/uploads/2022/01/pic5-6.png)
wget https://raw.githubusercontent.com/AlmaLinux/almalinux-deploy/master/almalinux-deploy.sh
# read the script #
vim almalinux-deploy.sh
![](https://unixcop.com/wp-content/uploads/2022/01/pic6-7.png)
set up executable permission using the chmod command
chmod -v +x almalinux-deploy.sh
![](https://unixcop.com/wp-content/uploads/2022/01/pic7-7.png)
Step # 3: Migration from CentOS 8 to AlmaLinux 8.
Now execute almalinux-deploy.sh for migrating CentOS to AlmaLinux.
./almalinux-deploy.sh
![](https://unixcop.com/wp-content/uploads/2022/01/pic8-4.png)
![](https://unixcop.com/wp-content/uploads/2022/01/pic9-4.png)
Step # 4: Verification the Server version.
Check the server version using command below.
cat /etc/redhat-release
OR
cat /etc/0s-release
![](https://unixcop.com/wp-content/uploads/2022/01/pic10-4.png)
Make sure there are no errors, execute the command below.
tail -f /var/log/messages
![](https://unixcop.com/wp-content/uploads/2022/01/pic11-4.png)
Conclusion:
In this article you have learned how to migrate from CentOS 8 to AlmaLinux. Check out the AlmaLinux website for documentation and GitHub link.