Log inSign up

Take a Rocky Linux or AlmaLinux server to the next major release

Major versions of the RHEL family have no built in upgrade command, so in place moves use the ELevate project with the Leapp tool: install the ELevate repository, run sudo leapp preupgrade, fix every inhibitor in /var/log/leapp/leapp-report.txt, then sudo leapp upgrade and reboot. Because there is no console to watch that offline reboot, the safer path is to upgrade a spare server first, or build a fresh one and migrate your data. Version 9 is supported until 2032, so there is no rush.

Topic: Server basics · Tested on: Rocky Linux 9, AlmaLinux 9 · Updated 2026-12-03

Do I need to upgrade at all right now?

Not urgently. Rocky Linux 9 and AlmaLinux 9 receive security updates until 2032, so a server deployed from our images today is covered for years. Rocky Linux 10 and AlmaLinux 10 exist and bring a newer kernel, toolchain and language versions, which matters when your software needs them or when you want to restart the support clock early.

Minor releases (9.5 to 9.6 and so on) are not part of this guide: they arrive through a normal sudo dnf upgrade. This guide covers the jump between major versions, which replaces nearly every package, the kernel and parts of the configuration.

There are two ways to do it, and the order below reflects their risk:

  • Fresh server migration: build a new server on the newer release, move data, switch DNS. The old server keeps running until the new one is proven.
  • In place upgrade with ELevate: convert the running system. Faster for simple servers, but a failure can leave it unbootable.

Will my server run version 10 at all?

Check the CPU feature level first. Enterprise Linux 10 builds target the x86-64-v3 level (AVX2 and related instructions); AlmaLinux additionally publishes a build for older x86-64-v2 hardware. The dynamic loader of version 9 reports which levels the vCPU supports:

/lib64/ld-linux-x86-64.so.2 --help | grep -E 'x86-64-v[234]'
lscpu | grep -o -w avx2

Look for x86-64-v3 (supported, searched). Also check the basics: at least 5 GB free on / and more on /var if it is separate, and the current release fully updated:

df -h / /boot /var
sudo dnf upgrade --refresh
cat /etc/redhat-release
sudo reboot

Reboot after the update so the upgrade starts from the newest 9.x kernel.

Why is a fresh server the safer path?

The Leapp upgrade reboots into a special temporary environment that has no network and no SSH while it replaces packages. On our platform there is no browser or VNC console, so you cannot see that stage, answer a prompt or fix a hang; you can only wait and see whether SSH comes back. If it does not, the recovery is a support restore of the daily backup or a reinstall. A fresh server avoids that risk completely, because the old system stays untouched.

Our Deploy page offers the version 9 images, so the practical fresh path looks like this:

  1. Deploy a second instance with Rocky Linux 9 or AlmaLinux 9 in the same city.
  2. Run the ELevate steps below on that empty server. If anything fails, reinstall it from the Settings tab and try again; nothing is lost.
  3. Install your software on the upgraded system, copy data across with rsync, test, then switch DNS records.
  4. Keep the old server until you are confident, then destroy it.

The flow is the same as in moving to a larger plan. The extra server needs its own order (at least $40), which is usually small compared to the downtime it prevents.

What should I back up before an in place upgrade?

If you upgrade the production server directly, make a backup you can restore elsewhere. Snapshots are not available, so use the daily backups add-on (enabled from the Backups tab, restore through a support ticket; see daily backups) and also copy the essentials off the server:

sudo tar czf /root/etc-el9.tgz /etc
rpm -qa --qf '%{NAME}\n' | sort > ~/packages-el9.txt
sudo mysqldump --all-databases | gzip > ~/db-el9.sql.gz   # if MySQL or MariaDB

Pull the archives and your application data to another machine with rsync and check they open. Note which third party repositories are enabled (dnf repolist), since EPEL and vendor repositories must offer packages for version 10 or Leapp will flag them.

How do I install ELevate and run the pre-upgrade check?

ELevate is maintained by the AlmaLinux project and packages the Leapp framework with migration data for several RHEL compatible targets. Install its repository, then the Leapp tool and the data package for the distribution you want to end up on:

sudo dnf install -y https://repo.almalinux.org/elevate/elevate-release-latest-el9.noarch.rpm
sudo dnf install -y leapp-upgrade leapp-data-almalinux   # target AlmaLinux 10
# sudo dnf install -y leapp-upgrade leapp-data-rocky     # target Rocky Linux 10

Supported source and target pairs change as the project evolves, so check the ELevate documentation for the current list before you rely on a combination. Then run the check, which changes nothing on the system:

sudo leapp preupgrade
sudo less /var/log/leapp/leapp-report.txt

The report sorts findings by severity. Entries marked inhibitor stop the upgrade until fixed; high and medium entries are warnings worth reading.

How do I fix common inhibitors?

Inhibitors usually fall into a few groups. Each report entry ends with a hint or a command; follow it, then run sudo leapp preupgrade again until no inhibitors remain.

  • Questions that need an answer: Leapp records them in /var/log/leapp/answerfile. Answer with the command the report shows, in the form sudo leapp answer --section <section>.<key>=True.
  • Third party packages and repositories: remove or disable repositories that have no version 10 builds yet, and reinstall from them after the upgrade.
  • Unsupported kernel modules or drivers: unload and remove them if they are not needed.
  • Old kernels or leftover packages: clean with sudo dnf remove --oldinstallonly and sudo dnf autoremove.
  • SSH root login settings: make PermitRootLogin explicit in /etc/ssh/sshd_config so the new defaults do not change how you log in.

Before the real run, make sure you can log in as your sudo user with an SSH key, since that is the login you will use afterwards.

How does the actual upgrade run?

Start the upgrade inside tmux, with a second SSH session open as a spare. Leapp downloads the new packages and prepares everything while the system still runs normally:

tmux new -s leapp
sudo leapp upgrade
sudo reboot

After reboot, the server boots into the temporary upgrade environment and installs the new release. This takes from about twenty minutes to an hour, during which SSH and your services are down. It then reboots again into version 10. From your computer, watch for the server to come back:

ping 198.51.100.24
ssh deploy@198.51.100.24

Do not press the Restart or Stop buttons on the instance page during this time; interrupting the offline phase is the most likely way to end with a broken system. If SSH has not returned after about ninety minutes, open a support ticket and describe what you ran.

What do I check and clean up afterwards?

Confirm the release and the kernel, then look for anything left over from version 9:

cat /etc/redhat-release
uname -r
systemctl --failed
rpm -qa | grep -E '\.el9' | sort

Review that list and remove packages that have no purpose any more. Then take the Leapp tooling off and clear the package exclude list it may have set:

sudo dnf remove leapp-upgrade leapp-data-almalinux elevate-release
sudo dnf config-manager --save --setopt exclude=''
sudo dnf upgrade --refresh

Use the matching data package name if you targeted Rocky. Leapp leaves SELinux in permissive mode after the upgrade; check for denials, then set it back to enforcing in /etc/selinux/config and reboot:

getenforce
sudo ausearch -m AVC -ts boot
sudo sed -i 's/^SELINUX=.*/SELINUX=enforcing/' /etc/selinux/config

The SELinux basics guide explains how to read denials. Finally re-enable third party repositories for version 10, confirm your firewall with sudo firewall-cmd --list-all and test every service from outside.

Questions about Rocky or AlmaLinux to a new major version

Is there a dnf system-upgrade command for Rocky or Alma?

No. That command belongs to Fedora. RHEL compatible distributions move between major versions with Leapp, which ELevate packages for Rocky Linux and AlmaLinux.

Can ELevate switch distributions, for example Rocky 9 to AlmaLinux 10?

ELevate supports several cross distribution targets, chosen by the leapp-data package you install. Check its current support list before relying on a specific pair.

Can I watch the offline upgrade phase?

No. Our instances have no browser or VNC console, so the offline stage runs unseen. That is the main reason to test on a spare server or migrate to a fresh one.

How long can I stay on version 9?

Rocky Linux 9 and AlmaLinux 9 receive updates until 2032, so many servers can simply be rebuilt on a newer release at their next big change.

What if the server does not come back after the upgrade?

Open a support ticket. Recovery means a restore of the daily backup by support, or a reinstall from the Settings tab followed by restoring your own off server copy.