Alma version upgrade instructions (9 -> 10)
Why upgrade Alma?
Upgrading to the new version provides better performance,
security, and long-term support.
By upgrading,
you get newer software versions, fixed vulnerabilities, and a more stable system.
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
search 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 "Legacy configurication network found"
that can be fixed by creating new connection with command:
sudo nmcli connection add type ethernet con-name dhcp-eth0 ifname eth0 ipv4.method auto ipv6.method auto autoconnect yes
Activate previously created connection with command:
sudo nmcli connection up dhcp-eth0
delete old connection with command:
sudo rm -f /etc/sysconfig/network-scripts/ifcfg-eth0
after that do a preupgrade check before doing upgade with command:
sudo leapp preupgrade

when you dont get any errors or inhibitors in preupgade report you can start update with this command:
sudo leapp upgrade
when sudo leap upgrade is succesfull without any inhibitors or errors do a "reboot command":
sudo reboot
log back in with command:
ssh username@server ip
replace user and server ip with your own user name and ip
alma should now be upgraded you can check the version with commands:
cat /etc/redhat-release
cat /etc/os-release
if you see results as almalinux 10, then your from upgrade almalinux (9 -> 10) is succesfull



