Infrastructure engineering for East Africa's operators, platforms and regulators See the work →
Rocky Linux 9 to 10 Upgrade: No In-Place Path, Tested
Linux 8 min read

Rocky Linux 9 to 10 Upgrade: No In-Place Path, Tested

Rocky Linux 9 to 10 in place: ELevate has no Rocky data, a forced dnf distro-sync broke our server, and AlmaLinux 9 to 10 went down for 5 min 40 s.

CE
CloudSpinx Engineering
Infrastructure Engineering, Virtualization, Networking, Automation
30 November 2026
rocky linux 10rocky linux 9elevateleapp

The belief goes like this: ELevate moved Rocky Linux from one major version to the next for years, so it will take a Rocky 9 server to 10 in place, the same way it does for AlmaLinux. On a fully updated Rocky Linux 9.9 server, the package a Rocky user reaches for answers this:

$ sudo dnf install -y leapp-upgrade leapp-data-rocky
No match for argument: leapp-data-rocky
Error: Unable to find a match: leapp-data-rocky

That much is documented. AlmaLinux's ELevate page says Rocky support ended with its 2025-11-03 update, after a change in leapp's data format, and that "the migration data required for Rocky Linux support has not been contributed." Rocky's own 10.1 release notes say the project "does not support upgrades to any major release" and tell you to reinstall and restore from backup.

Documented is not the same as tried, so we tried. Three servers in Google Cloud's Johannesburg region carried the same stack: nginx, PHP-FPM 8.0, MariaDB 10.5, EPEL, and Docker CE from Docker's own RHEL repository running an nginx container, the kind of single box CloudSpinx runs for organizations in Kenya under Linux infrastructure management. One Rocky 9.9 server got ELevate anyway, one got Rocky 10's repositories forced onto it, and one AlmaLinux 9.9 server took the route that is still supported. The first, which ELevate left untouched, then probed the other two once a second.

Can ELevate upgrade Rocky Linux 9 to 10?

No, and the workaround people try first fails too. ELevate's EL9 repository carries leapp 0.21 and leapp-upgrade-el9toel10 0.25, with data packages for AlmaLinux, AlmaLinux Kitten and CentOS Stream. With no Rocky data, the obvious shortcut is AlmaLinux's data on the Rocky box. leapp preupgrade ran for 2 minutes 25 seconds and stopped:

Following errors occurred and the upgrade cannot continue:
    1. Actor: dnf_transaction_check
       Message: DNF execution failed with non zero exit code.

Upgrade has been inhibited due to the following problems:
    1. Detected unknown GPG keys for target system repositories

Leapp still identified the machine as Rocky and loaded Rocky 10's signing key, then pointed its target repositories at AlmaLinux 10, which wanted RPM-GPG-KEY-AlmaLinux-10. The report suggests --nogpgcheck for that inhibitor, but the error underneath was the transaction check: kernel-core, kmod, container-selinux and net-naming-sysattrs from AlmaLinux 10 could not be installed, because dracut, libcrypto and policycoreutils would not resolve. Four separate dependency problems. We did not try to force it further. A tool whose maintainers say the path is unsupported, running with another distribution's data, is not something we would put a client's server through.

Forcing Rocky 10's repositories onto Rocky 9

The other shortcut is to skip leapp and tell dnf the release is 10. The dry run looked tame:

$ sudo dnf --releasever=10 --disablerepo="google*" distro-sync --allowerasing --assumeno
...
Install     68 Packages
Upgrade    474 Packages
Remove       4 Packages
Downgrade    4 Packages

Total download size: 857 M

The real run took the server off the network about 1 minute 45 seconds in. The serial console shows the sequence. As EL10 libraries replaced EL9 ones, the firewalld still running from Rocky 9 (on Python 3.9) threw a traceback calling into NetworkManager (Could not locate nm_client_new). Within a minute dnf could not resolve download.docker.com, and the old daemon refused Rocky 10's new firewall policy files ("name has 19 chars, max is 18"). dnf ran as a child of that SSH session, and its output stops at step 553 of 1,038, a minute after the session dropped.

After a hard reset the box booted, which was the worst part. It reported itself as Rocky 10:

Rocky Linux release 10.3 (Red Quartz)
5.14.0-741.28.1.el9_9.x86_64
--- rpm counts: total 1062, .el9 511, .el10 543
--- dnf repoquery --duplicates --installed: 948 lines
● mariadb.service loaded failed failed MariaDB 10.11 database server

That is the EL9 kernel, still the boot default, under a release file that says 10.3. Half the userspace was 9 and half was 10, NetworkManager 1.54 and 1.58 installed side by side, and MariaDB 10.11 failing to start, so the site's database page came back empty while nginx and the container answered as if nothing had happened. We did not rerun it inside tmux or on a console, so we cannot say whether it would have finished. Nobody supports what you get at the end either way. Treat this server as a rebuild.

The route that works: AlmaLinux 9, then ELevate to 10

ELevate is healthy inside AlmaLinux. From AlmaLinux 9.9 with the identical stack, leapp preupgrade took 2 minutes 9 seconds and found no inhibitors. It flagged the Google packages as third-party, MariaDB 10.5 to 10.11, a Berkeley DB (libdb) warning, and two kernel drivers no longer maintained in 10 (ip_set, nft_compat). leapp upgrade then ran for 7 minutes with the site, the container and SSH answering every probe.

Three ways off Rocky Linux 9, and where each one ended
Three ways off Rocky Linux 9, and where each one endedA flow from one Rocky Linux 9.9 server with nginx, PHP-FPM, MariaDB, EPEL and Docker CE down three routes. ELevate with AlmaLinux data stopped at the preupgrade check with one inhibitor and four dependency problems, changing nothing. Forcing Rocky 10 repositories with dnf distro-sync lost the network 1 minute 45 seconds in and left a server booting the EL9 kernel with 511 EL9 and 543 EL10 packages. Crossgrading to AlmaLinux 9 and then running ELevate reached AlmaLinux 10.3 with about 5 minutes 40 seconds offline at the reboot.Rocky Linux 9.9, fully updatednginx, PHP-FPM 8.0, MariaDB 10.5, EPEL, Docker CEELevate, AlmaLinux datano leapp-data-rockydnf --releasever=10distro-sync --allowerasingalmalinux-deploynot run in our labpreupgrade: 2 min 25 s1 inhibitor, 1 error4 dependency problemsstops, nothing changedoffline at 1 min 45 sfirewalld tracebackdnf dies at 553 of 1,038says 10.3, boots EL9511 el9 + 543 el10 rpmsMariaDB failedrebuildAlmaLinux 9.9preupgrade: 0 inhibitorsleapp upgrade 7 min onlineAlmaLinux 10.35 min 40 s offline at rebootthen EPEL, SELinux, MariaDB
  • stopped or broken
  • reached 10
Only the route through AlmaLinux reached a working 10. About 5 minutes 40 seconds offline, all of it at the reboot, then EPEL, SELinux and MariaDB to put right. The crossgrade hop is dashed because we took it from the almalinux-deploy README, not from this lab.

The reboot is where the downtime lives. The last good answer came at 08:56:37, SSH returned at 09:02:18, PHP two seconds later, the container at 09:02:23. Inside those roughly 5 minutes 40 seconds the box booted an upgrade initramfs, ran the RPM transaction (77 installs, 473 upgrades, 19 removals, 5 downgrades), rebooted for an SELinux relabel and booted once more into AlmaLinux 10.3 on kernel 6.12. Plan the window around the reboot, not the 7 minutes before it.

For a Rocky 9 owner this is the second of two hops, and our server started from AlmaLinux's own image, not a crossgraded one. The first is AlmaLinux's almalinux-deploy script, whose README lists Rocky Linux 8, 9 and 10 as supported sources and tells you to update, reboot, back up and run it inside screen or tmux. We did not run the crossgrade in this lab, so we have no timing for it. Snapshot first either way. On Google Cloud we timed a snapshot restore to an answering VM at 100 seconds in Johannesburg, once the snapshot's storage location is set. One more condition before either hop: AlmaLinux 10's default build, like Rocky 10, needs an x86-64-v3 CPU, which our n2 instances report. On older hardware or a Proxmox VM on its default CPU type, check first, as in our Ubuntu vs Rocky test.

If you have a rack of Rocky 9 servers and would rather not learn this one box at a time, tell us what they run and we will say which ones can make the two hops.

What the AlmaLinux 10 server still needed

Every service came back, and systemctl --failed was empty. Four things were still wrong.

EPEL was gone. The ELevate quickstart lists EPEL as supported for upgrades to AlmaLinux, and leapp did upgrade htop to its EPEL 10 build. It also mapped epel-release to a package called epel-release-almalinux-altarch, logged that it was "not found in repositories metadata", and erased the old epel-release without a replacement. The server had EPEL packages installed and no EPEL repository to update them from. The only record we found is two lines in /var/log/leapp/leapp-upgrade.log.

SELinux stayed permissive, in /etc/selinux/config as well, because leapp sets it that way for the upgrade and leaves turning it back on to you. Switching to enforcing produced no denials for this stack.

MariaDB served the old data directory but logged that it "needs to be upgraded using 'mariadb-upgrade' tool". Run it.

Google's guest agent was erased in the RPM transaction; the preupgrade report had listed Google's packages as not signed by the distribution vendor. The osconfig agent survived on its EL9 build. On Proxmox or bare metal there is no Google agent, but a monitoring or backup agent you installed from a vendor repository is in the same position: check it is still there after the reboot.

$ sudo setenforce 1
$ sudo sed -i 's/^SELINUX=permissive/SELINUX=enforcing/' /etc/selinux/config
$ sudo mariadb-upgrade
$ sudo dnf install -y epel-release
$ rpm -qa | grep '\.el9'

epel-release 10 comes straight from AlmaLinux's extras repository. The last command lists what is still EL9: on ours, 14 packages, the old kernels, the leapp tooling and the osconfig agent. Leapp also adds an exclude= line for its own packages to /etc/dnf/dnf.conf, so remove those and that line together. The 10 series also drops /etc/sysconfig/network-scripts and NIC teaming (Rocky's 10.1 notes list both, and our AlmaLinux 10 server had no network-scripts directory left), so any interface config that still lives there needs moving to NetworkManager before the reboot, not after.

Where the reinstall advice is right

For staying on Rocky, the forum advice holds: there is no in-place path from 9 to 10, and the forced one leaves you rebuilding anyway. A fresh Rocky 10 install with the data restored is the supported move, and our setup checklist is the order we build in. Nothing forces it soon. Rocky's release page puts the end of Rocky 9's general support at 31 May 2027 and security updates through 31 May 2032. It is the same choice Ubuntu owners face at an LTS hop, where do-release-upgrade at least exists.

The AlmaLinux route earns its two hops on a server that is expensive to rebuild: years of hand edits, an application nobody can reinstall from scratch, or a vendor that certifies "RHEL compatible" rather than a named distribution. A server whose build is already in Ansible or a kickstart file is cheaper to rebuild on Rocky 10, and you do not need us for that.

For anything in between, write "Rocky 9 to 10" in "What do you need?" on the Linux scoping form, pick "Rocky or AlmaLinux" under "Which distribution?", and paste into "Anything we should know?" what each server prints for cat /etc/rocky-release, dnf repolist and /usr/lib64/ld-linux-x86-64.so.2 --help | grep x86-64-v3. Longer output can go on WhatsApp to +254 713 403 044. Each server comes back marked crossgrade and ELevate, rebuild on Rocky 10, or leave on 9 for now, with one figure for the move, which we then carry out with your team. No charge for the answer, and no obligation after it.

WhatsApp