January 20 2022

CentOS 8 End Of Life, let's update it to AlmaLinux

How to upgrade CentOS 8 to AlmaLinux, a RHEL compatible distribution

Migrate from CentOS to AlmaLinux

As we have previously announced in this post AlmaLinux is the new LTS alternative distribution to RedHat RHEL 8 and CentOS 8 CentOS is in fact "dead" if we mean by CentOS that RHEL Enterprise compatible distribution that allowed stable packages and ten-year lifecycles.

In addition to the considerable discontent of the Open Source community, the disappointment of all those who used the latest CentOS 8 release was obviously revealed, who saw the life cycle end in December 2021, about 10 years earlier than initial expectations.

Obviously the main concern was about how to behave, especially for entrepreneurial and commercial realities that have dozens, or hundreds of machines installed with CentOS 8.

As we have already said therefore AlmaLinux is the solution.

AlmaLinux is a free, community-controlled, open source Linux distribution for businesses with a focus on long-term stability, providing a robust production-grade platform. AlmaLinuxOS is 1: 1 compatible with RHEL® and CentOS pre-Stream.

This step by step tutorial explains how to migrate to AlmaLinux 8 from CentOS 8 using the script Almalinux-deploy . Using the Almalinux-deploy script, we can easily convert CentOS machines to AlmaLinux.

It is written in Bash and the source code is available on GitHub. Now let's go ahead and migrate from CentOS to AlmaLinux with the almalinux-deploy script.

Step 1: update your CentOS system to the latest version available such as rootsudoroot:

$ sudo dnf update

Step 2: reboot system to apply updates:

$sudo reboot

Let's check the current version of CentOS 8:

$ cat / etc / redhat-release 
CentOS Linux version 8.3.2011

Yes, it is the latest version!

Step 3: download the almalinux-deploy script using the command:

$ curl -O https://raw.githubusercontent.com/AlmaLinux/almalinux-deploy/master/almalinux-deploy.sh

Step 4: go to the location where you downloaded the script and run the script to start the Almalinux migration:

$ sudo bash almalinux-deploy.sh

This command will install some new packages, upgrade and downgrade some existing packages, reinstall some packages, and uninstall some packages.

It will take a couple of minutes depending on the speed of your internet connection and the total number of packages installed in your CentOS system.

Example of output:

 Check root privileges OK Check Secure Boot disabled OK Check centos-8.x86_64 is supported OK Download RPM-GPG-KEY-AlmaLinux OK Import RPM-GPG-KEY-AlmaLinux to RPM DB OK Download almalinux-release package OK Verify almalinux-release package OK Remove centos-linux-release package OK Remove centos-gpg-keys package OK Remove centos-linux-repos package OK Verifying… ######################## ########## [100%] Preparing… ################################### [ 100%] Updating / installing… 1: almalinux-release-8.3-4.el8 ################################## # [100%] Install almalinux-release package OK determining the fastest mirror (55 hosts) ..  done.  [===] --- B / s | 0 B -: - ETA AlmaLinux 8 - BaseOS 125 kB / s | 3.4 MB 00:27 AlmaLinux 8 - AppStream 155 kB / s | 6.8 MB 00:44 AlmaLinux 8 - PowerTools 589 kB / s | 2.1 MB 00:03 AlmaLinux 8 - Extras 3.3 kB / s | 3.6 kB 00:01 Dependencies resolved.


If the migration is successful, you will see the following message:

[...] Complete! Run dnf distro-sync -y OK


Step 5: run the following command to synchronize the installed packages with the latest available versions.

$ sudo dnf distro-sync -y

Step 6: Reboot the system (reboot)

$sudo reboot

Now your system will need to boot into the newly migrated AlmaLinux:

Boot into AlmaLinux

Step 7: Login to your AlmaLinux and check the version:

$ cat / etc / redhat-release 
AlmaLinux release 8.3 (Purple Manual)
Login to AlmaLinux

Congratulations! The migration was successful.

Make sure and verify that the system boots into AlmaLinux by default using this command:

$ sudo grubby --info DEFAULT | grep AlmaLinux

Example of output:

title = "AlmaLinux (4.18.0-240.15.1.el8_3.x86_64) 8.3 (Purple Manul)"

That's all. Enjoy your AlmaLinux as well.

Do you have doubts? Don't know where to start? Contact us!

We have all the answers to your questions to help you make the right choice.

Chat with us

Chat directly with our presales support.


Contact us by phone during office hours 9:30 - 19:30

Contact us online

Open a request directly in the contact area.


Managed Server Srl is a leading Italian player in providing advanced GNU/Linux system solutions oriented towards high performance. With a low-cost and predictable subscription model, we ensure that our customers have access to advanced technologies in hosting, dedicated servers and cloud services. In addition to this, we offer systems consultancy on Linux systems and specialized maintenance in DBMS, IT Security, Cloud and much more. We stand out for our expertise in hosting leading Open Source CMS such as WordPress, WooCommerce, Drupal, Prestashop, Joomla, OpenCart and Magento, supported by a high-level support and consultancy service suitable for Public Administration, SMEs and any size.

Red Hat, Inc. owns the rights to Red Hat®, RHEL®, RedHat Linux®, and CentOS®; AlmaLinux™ is a trademark of AlmaLinux OS Foundation; Rocky Linux® is a registered trademark of the Rocky Linux Foundation; SUSE® is a registered trademark of SUSE LLC; Canonical Ltd. owns the rights to Ubuntu®; Software in the Public Interest, Inc. holds the rights to Debian®; Linus Torvalds holds the rights to Linux®; FreeBSD® is a registered trademark of The FreeBSD Foundation; NetBSD® is a registered trademark of The NetBSD Foundation; OpenBSD® is a registered trademark of Theo de Raadt. Oracle Corporation owns the rights to Oracle®, MySQL®, and MyRocks®; Percona® is a registered trademark of Percona LLC; MariaDB® is a registered trademark of MariaDB Corporation Ab; REDIS® is a registered trademark of Redis Labs Ltd. F5 Networks, Inc. owns the rights to NGINX® and NGINX Plus®; Varnish® is a registered trademark of Varnish Software AB. Adobe Inc. holds the rights to Magento®; PrestaShop® is a registered trademark of PrestaShop SA; OpenCart® is a registered trademark of OpenCart Limited. Automattic Inc. owns the rights to WordPress®, WooCommerce®, and JetPack®; Open Source Matters, Inc. owns the rights to Joomla®; Dries Buytaert holds the rights to Drupal®. Amazon Web Services, Inc. holds the rights to AWS®; Google LLC holds the rights to Google Cloud™ and Chrome™; Microsoft Corporation holds the rights to Microsoft®, Azure®, and Internet Explorer®; Mozilla Foundation owns the rights to Firefox®. Apache® is a registered trademark of The Apache Software Foundation; PHP® is a registered trademark of the PHP Group. CloudFlare® is a registered trademark of Cloudflare, Inc.; NETSCOUT® is a registered trademark of NETSCOUT Systems Inc.; ElasticSearch®, LogStash®, and Kibana® are registered trademarks of Elastic NV Hetzner Online GmbH owns the rights to Hetzner®; OVHcloud is a registered trademark of OVH Groupe SAS; cPanel®, LLC owns the rights to cPanel®; Plesk® is a registered trademark of Plesk International GmbH; Facebook, Inc. owns the rights to Facebook®. This site is not affiliated, sponsored or otherwise associated with any of the entities mentioned above and does not represent any of these entities in any way. All rights to the brands and product names mentioned are the property of their respective copyright holders. Any other trademarks mentioned belong to their registrants. MANAGED SERVER® is a trademark registered at European level by MANAGED SERVER SRL, Via Enzo Ferrari, 9, 62012 Civitanova Marche (MC), Italy.

Back to top