20 January 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.

0256569681

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

Contact us online

Open a request directly in the contact area.

DISCLAIMER, Legal Notes and Copyright. RedHat, Inc. holds the rights to Red Hat®, RHEL®, RedHat Linux®, and CentOS®; AlmaLinux™ is a trademark of the AlmaLinux OS Foundation; Rocky Linux® is a registered trademark of the Rocky Linux Foundation; SUSE® is a registered trademark of SUSE LLC; Canonical Ltd. holds 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 holds the rights to Oracle®, MySQL®, MyRocks®, VirtualBox®, and ZFS®; Percona® is a registered trademark of Percona LLC; MariaDB® is a registered trademark of MariaDB Corporation Ab; PostgreSQL® is a registered trademark of PostgreSQL Global Development Group; SQLite® is a registered trademark of Hipp, Wyrick & Company, Inc.; KeyDB® is a registered trademark of EQ Alpha Technology Ltd.; Typesense® is a registered trademark of Typesense Inc.; 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; HAProxy® is a registered trademark of HAProxy Technologies LLC; Traefik® is a registered trademark of Traefik Labs; Envoy® is a registered trademark of CNCF; Adobe Inc. owns the rights to Magento®; PrestaShop® is a registered trademark of PrestaShop SA; OpenCart® is a registered trademark of OpenCart Limited; Automattic Inc. holds the rights to WordPress®, WooCommerce®, and JetPack®; Open Source Matters, Inc. owns the rights to Joomla®; Dries Buytaert owns the rights to Drupal®; Shopify® is a registered trademark of Shopify Inc.; BigCommerce® is a registered trademark of BigCommerce Pty. Ltd.; TYPO3® is a registered trademark of the TYPO3 Association; Ghost® is a registered trademark of the Ghost Foundation; Amazon Web Services, Inc. owns the rights to AWS® and Amazon SES®; Google LLC owns the rights to Google Cloud™, Chrome™, and Google Kubernetes Engine™; Alibaba Cloud® is a registered trademark of Alibaba Group Holding Limited; DigitalOcean® is a registered trademark of DigitalOcean, LLC; Linode® is a registered trademark of Linode, LLC; Vultr® is a registered trademark of The Constant Company, LLC; Akamai® is a registered trademark of Akamai Technologies, Inc.; Fastly® is a registered trademark of Fastly, Inc.; Let's Encrypt® is a registered trademark of the Internet Security Research Group; Microsoft Corporation owns the rights to Microsoft®, Azure®, Windows®, Office®, and Internet Explorer®; Mozilla Foundation owns the rights to Firefox®; Apache® is a registered trademark of The Apache Software Foundation; Apache Tomcat® is a registered trademark of The Apache Software Foundation; PHP® is a registered trademark of the PHP Group; Docker® is a registered trademark of Docker, Inc.; Kubernetes® is a registered trademark of The Linux Foundation; OpenShift® is a registered trademark of Red Hat, Inc.; Podman® is a registered trademark of Red Hat, Inc.; Proxmox® is a registered trademark of Proxmox Server Solutions GmbH; VMware® is a registered trademark of Broadcom Inc.; 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; Grafana® is a registered trademark of Grafana Labs; Prometheus® is a registered trademark of The Linux Foundation; Zabbix® is a registered trademark of Zabbix LLC; Datadog® is a registered trademark of Datadog, Inc.; Ceph® is a registered trademark of Red Hat, Inc.; MinIO® is a registered trademark of MinIO, Inc.; Mailgun® is a registered trademark of Mailgun Technologies, Inc.; SendGrid® is a registered trademark of Twilio Inc.; Postmark® is a registered trademark of ActiveCampaign, LLC; cPanel®, LLC owns the rights to cPanel®; Plesk® is a registered trademark of Plesk International GmbH; Hetzner® is a registered trademark of Hetzner Online GmbH; OVHcloud® is a registered trademark of OVH Groupe SAS; Terraform® is a registered trademark of HashiCorp, Inc.; Ansible® is a registered trademark of Red Hat, Inc.; cURL® is a registered trademark of Daniel Stenberg; Facebook®, Inc. owns the rights to Facebook®, Messenger® and Instagram®. This site is not affiliated with, sponsored by, or otherwise associated with any of the above-mentioned entities 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. All other trademarks mentioned are the property of their respective registrants.

JUST A MOMENT !

Have you ever wondered if your hosting sucks?

Find out now if your hosting provider is hurting you with a slow website worthy of 1990! Instant results.

Close the CTA
Back to top