Upgrade from 9 to 10 with leapp

I am following the instructions at centlinux. There is nothing distribution-specific in those instructions.

I got as far as the installation of leapp-upgrade-el9toel10 but had to re-enable repos to get this to work.

Finally installed leapp 0.18.0 and ran leapp preupgrade.

The key error returned was:

Distribution rocky was not found in /etc/leapp/repos.d/system_upgrade/common/files/distro.

The only entries in that directory are centos and rhel.

How do I add rocky?

I thought I had found a source for this but then leapp preupgrade gave:

Title: The installed OS version is not supported for the in-place upgrade to the target RHEL version
Summary: The supported OS releases for the upgrade process:

  • RHEL 9.6
  • RHEL-SAPHANA 9.6

Again knowledge of rocky is missing.

Upgrades of Rocky are not supported, and the leapp packages are effectively redundant. Better option would be to use the ELevate project that Alma run. Although as far as I am aware, they haven’t added support to upgrade Rocky from 9 to 10 yet, but for earlier versions there are paths, eg from 8 to 9.

The Rocky team recommend clean install and restore your data/config.

I don’t understand.

Leapp is part of the Elevate package.

As mentioned, if you look at ELevate project like I mentioned, you will see there currently isn’t a Rocky 9 to 10 upgrade path - they haven’t done it yet. Quote from my previous post:

so until they add support, you cannot upgrade it. Below supported upgrade paths:

if you want to upgrade, you will have to ask them to add support for it. The Rocky team are not responsible for ELevate.

Then why do the instructions say:

dnf install leap-upgrade-el9toel10 -y

And where on the graphic above from ELevate project do you see Rocky 10? You don’t because it’s not currently supported by the ELevate project.

Ask them for help. Maybe they will tell you when they will support upgrading Rocky 9 to 10.

First, the leapp is from Red Hat, for RHEL. Even they do admit that it will fail for some setups. The ELevate provides (meta)data about (some) non-RHEL distros for leapp.


Thought experiment:
You server breaks down completely. What will you do?