DaDesktop

AlmaLinux8

v1: Starting template for migrating away from CentOS8 because of its end of life. AlmaLinux functions as a direct, binary-compatible substitute for CentOS8.
 

Guidance for anyone looking to upgrade or migrate their CentOS8 templates

The following comes from the official AlmaLinux guide, available at https://github.com/AlmaLinux/almalinux-deploy. Always check the most recent version via that link; the content below was current as of 29 March 2022 and is reproduced for convenience.

We’re providing this as a community resource, but please understand that we cannot be held liable for any errors or problems that might arise from following it.
 

almalinux-deploy

An EL to AlmaLinux migration tool.

Usage

To switch your EL8 operating system over to AlmaLinux, follow these steps:

  1. You need CentOS 8.4 or 8.5 to migrate to AlmaLinux. It’s advisable to upgrade to 8.5 before beginning, although if you’re already on 8.4, that works too. If any updates are applied, a system reboot is a good idea.

    sudo dnf update -y
    sudo reboot
    
  1. Make sure you back up your system. Not every possible scenario has been tested, so there’s a chance something may go wrong. A backup gives you a restore point in case that happens.

  2. Download the almalinux-deploy.sh script:

    $ curl -O https://raw.githubusercontent.com/AlmaLinux/almalinux-deploy/master/almalinux-deploy.sh
  3. Execute the script and examine the output for any errors:

    $ sudo bash almalinux-deploy.sh
      ...
      Migration to AlmaLinux is completed
  4. It’s best to reboot so you can start with the AlmaLinux kernel:

    sudo reboot
    
  5. Verify that the conversion was successful:

    # check release file
    $ cat /etc/redhat-release
    AlmaLinux release 8.5 (Arctic Sphynx)
    
    # check that the system boots AlmaLinux kernel by default
    $ sudo grubby --info DEFAULT | grep AlmaLinux
    title="AlmaLinux (4.18.0-348.el8.x86_64) 8.5 (Arctic Sphynx)"
  6. Thank you for selecting AlmaLinux!