Prerequisites:
- Ensure you have root access to the AlmaLinux 8 server.
- Perform a full backup of your system before proceeding.
Step-by-Step Migration Guide:
Update AlmaLinux 8:
# yum update -y
# reboot
Verify the update:
# cat /etc/os-release
Add Elevate Testing Repository:
# curl https://repo.almalinux.org/elevate/testing/elevate-testing.repo -o /etc/yum.repos.d/elevate-testing.repo
# ls /etc/yum.repos.d/ | grep elevate
Import Elevate GPG Key:
# rpm --import https://repo.almalinux.org/elevate/RPM-GPG-KEY-ELevate
Disable SELinux Temporarily: Edit /etc/sysconfig/selinux
and set:
SELINUX=disabled
Reboot the system.
Disable ZoneDrifting in Firewalld: Edit /etc/firewalld/firewalld.conf
and set:
AllowZoneDrifting=no
Install Upgrade Packages:
# yum install -y leapp-upgrade leapp-data-almalinux
Run Pre-Upgrade Check:
# leapp preupgrade
Start the Upgrade:
# leapp upgrade
Follow any prompts or instructions during the upgrade process.
Reboot After Upgrade:
# reboot
Verify AlmaLinux Version: After rebooting, confirm the upgrade:
# cat /etc/os-release
Conclusion:
These steps provide a comprehensive guide to smoothly migrate from AlmaLinux 8 to AlmaLinux 9, ensuring your server stays supported and up-to-date with the latest features and security fixes.
Remember, always test upgrades in a non-production environment first, and have a rollback plan in case of unexpected issues.