Alma version upgrade instructions (8 -> 9)
Running these commands could break your system, remember to create backups!
Start with updating packets:
sudo yum update -y
Reboot:
reboot
Download elevate repository:
sudo yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm
Import GPG-key:
sudo rpm --import https://repo.almalinux.org/elevate/RPM-GPG-KEY-ELevate
Install leapp packets:
sudo yum install -y leapp-upgrade leapp-data-almalinux
Do a preupgrade check:
sudo leapp preupgrade
The preupgrade check might show errors, in this example the problem is "Possible problems with remote login using root account".
Open sshd_config:
sudo vim /etc/ssh/sshd_config
Find "PermitRootLogin" and add "prohibit-password".
Save and exit by pressing Esc and then type :wq
Do the preupgrade check again. When all errors and prohibits are gone, start the upgrade:
sudo leapp upgrade
Reboot after the upgrade is done:
reboot
Choose "ELevate-Upgrade-Initramfs".
Alma should now be upgraded.
Check the version:
cat /etc/redhat-release