ANS Documentation

Improve This Doc
  • Cloud
  • Domains and DNS management
  • Backup and High Availability
  • eCommerce Stacks
  • Security
  • Email
  • Monitoring and usage management
  • Networking
  • Operating systems
    • Linux
      • Basics
      • Apache
      • Control Panels
      • FTP
      • Magento
      • Miscellaneous
      • MySQL
      • NGINX
      • PHP
      • PHP-FPM
      • Setting up Websites
      • NFS
      • VPN
      • Percona
      • SSH
      • SSL
      • Git
      • Redis
      • Elasticsearch
      • MongoDB
      • Ncdu
    • VMware ESXi
    • Windows
  • Webcelerator
  • MyUKFast
  • Home >
  • Operating systems >
  • Linux >
  • Miscellaneous >
  • Migrating from CentOS 8 to AlmaLinux

Migrating from CentOS 8 to AlmaLinux¶

On December 31, 2021, CentOS 8 will reach end-of-life, meaning that Red Hat will no longer make security and maintenance updates to the OS. Since the announcement of this EOL date, several open-source RHEL (Red Hat Enterprise Linux) forks have been created, including AlmaLinux. This guide details the steps for migrating from CentOS 8 to AlmaLinux.

Prerequisites¶

  • Server running CentOS 8.3 or above. You can verify this by running cat /etc/redhat-release. If your server is on CentOS 8 but below 8.3, you can update by running sudo yum update. You can find more information on updates here.

  • If you are a UKFast Backups customer, you can check on MyUKFast or contact one of our support engineers via the ticketing system to ensure that you have a recent full backup.

  • Once the migration is completed, the server will require a reboot.

  • A minimum of 5GB free disk space

  • Roughly 5m-2h time

Downloading the AlmaLinux Migration Script¶

Firstly, login to the server via SSH. From here, we will be downloading the almalinux-deploy.sh script from the AlmaLinux repo:

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

With the script now downloaded, add the execute permission using the chmod command:

chmod +x  almalinux-deploy.sh

Starting the Migration¶

Once you are happy that you’re on CentOS 8.3 or above, have backups in place, a minimum of 5GB free disk space and that you can reboot, run the almalinux-deploy.sh script to start the migration.

sudo bash almalinux-deploy.sh

The script has multiple stages. Initially, it does a pre-flight check to ensure compatibility and that the minimum requirements are met. After this, the script will begin to uninstall, reinstall and upgrade some packages from the AlmaLinux repository. The time the script takes to run can vary greatly, from anywhere between 60 seconds to 2 hours.

Finishing the Migration¶

Once the script has finished running, it will display “Migration to AlmaLinux is completed”. The last stage is to reboot the server, which will load the AlmaLinux Kernel.

sudo reboot

Once your server has rebooted, reconnect via SSH and confirm the version of AlmaLinux:

[root@example ~]$ cat /etc/redhat-release
AlmaLinux release 8.4 (Electric Cheetah)

Additional Information¶

  • cPanel: CentOS 8 Migration Guide

  • Plesk: CentOS 8 Migration Guide

  • GitHub: AlmaLinux Migration Script

Next Article > MySQL

  • Useful Links
  • SMB
  • Enterprise
  • Channel
  • Public Sector
  • ANS Data Centres
  • About ANS
  • Careers
  • Blog
  • Get in touch
  •  
  • Sales 0800 458 4545
  • Support 0800 230 0032
  • Get in touch

© ANS Group Limited | Terms and Conditions | Corporate Guidance | Sitemap
ANS Group Limited, registered in England and Wales, company registration number 03176761, registered office 1 Archway, Birley Fields, Manchester M15 5QJ