Dependency check failing for upgrade from CentOS 7 to 8

I am administrating a CentOS box, although I have essentially no experience with the distribution.

The release version is 7, and since the software is now considerably out of date, and some applications and builds are breaking, I followed instructions from an article for upgrading to CentOS 8.

I reached up to the pivotal command: dnf -y --releasever=8 --allowerasing --setopt=deltarpm=false distro-sync.

The operation fails, and its output ends as follows:

Running transaction check
Error: transaction check vs depsolve:
(gcc >= 8 with gcc < 9) is needed by annobin-9.72-1.el8_5.2.x86_64
rpmlib(RichDependencies) <= 4.12.0-1 is needed by annobin-9.72-1.el8_5.2.x86_64
(mariadb >= 3:10.3.27 if mariadb) is needed by mariadb-connector-c-3.1.11-2.el8_3.x86_64
(mariadb-connector-c-config = 3.1.11-2.el8_3 if mariadb-connector-c-config) is needed by mariadb-connector-c-3.1.11-2.el8_3.x86_64
rpmlib(RichDependencies) <= 4.12.0-1 is needed by mariadb-connector-c-3.1.11-2.el8_3.x86_64
(annobin if gcc) is needed by redhat-rpm-config-125-1.el8.noarch
rpmlib(RichDependencies) <= 4.12.0-1 is needed by redhat-rpm-config-125-1.el8.noarch
(NetworkManager >= 1.20 or dhclient) is needed by dracut-network-049-191.git20210920.el8.x86_64
rpmlib(RichDependencies) <= 4.12.0-1 is needed by dracut-network-049-191.git20210920.el8.x86_64
To diagnose the problem, try running: 'rpm -Va --nofiles --nodigest'.
You probably have corrupted RPMDB, running 'rpm --rebuilddb' might fix the issue.
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages

The suggested command rpm --rebuilddb produces no output or improvement.

The suggested command rpm -Va --nofiles --nodigest produces the following output:

Unsatisfied dependencies for iprutils-2.4.17.1-3.el7_7.x86_64:
    /sbin/pidof is needed by (installed) iprutils-2.4.17.1-3.el7_7.x86_64
Unsatisfied dependencies for initscripts-9.49.53-1.el7_9.1.x86_64:
    sysvinit-tools >= 2.87-5 is needed by (installed) initscripts-9.49.53-1.el7_9.1.x86_64

I am struggling to interpret the dependency issues, and hope to receive some guidance reaching a resolution.

The rpmlib(RichDependencies) errors are a sign that your current RPM tooling can’t handle the dependency requirements of those EL8 packages. So I wouldn’t assume the RPM database is corrupted just because the error message suggests rebuilding it.

The two dependency issues reported by rpm -Va are worth looking into too, but they don’t necessarily explain the main failure.

The bigger problem is the upgrade method. CentOS 7 to 8 isn’t a straightforward distro-sync, and forcing the package switch can leave you with a broken system. Also, CentOS 8 reached end of life in December 2021, and CentOS 7 reached end of life in June 2024, so upgrading to CentOS 8 isn’t a great long-term solution anyway.

Before rebooting, check whether you still have a kernel installed:

rpm -q kernel
ls /boot/vmlinuz-*

I mention this because if you followed the guide’s step that removes the installed kernel, you need to make sure there’s still a kernel available to boot.

I’d back up the important data first. If this is a VM and you have a snapshot from before the upgrade attempt, restoring it would probably be the safest option.

For the long term, I’d either do a fresh install of a supported distribution, such as AlmaLinux 9, and migrate your applications and data, or look into ELevate if you specifically need an in-place upgrade. The documented migration path goes through AlmaLinux 8 before moving to 9.

Since you’ve already changed the repositories and removed packages, though, I’d check the current system state before attempting ELevate. Its pre-upgrade check can help identify blockers, but it doesn’t guarantee the migration will succeed.

The kernels have all been removed.

What is the easiest way to restore?

I suppose it is necessary first to revert the .repo files.

Yeah, reverting the repos first is the right call. Don’t reboot yet. The running kernel is still in memory, so the box is up for now, but with all the kernels removed it likely won’t boot again until one is restored.

1. Look at what you’ve got first

cat /etc/redhat-release
rpm -q centos-release
ls /etc/yum.repos.d/
command -v yum dnf
date

Use whichever of yum / dnf is actually installed below (I’ll write yum, swap in dnf if that’s all you have). If neither shows up, skip to the fallback at the bottom. Also make sure date is correct, since a wrong clock breaks HTTPS.

2. Back up and restore the CentOS 7 repos

CentOS 7 is EOL so the normal mirrorlist is dead. Point at the vault instead:

mkdir -p /root/repo-backup && cp -a /etc/yum.repos.d/. /root/repo-backup/
cat > /etc/yum.repos.d/CentOS-Base.repo << 'EOF'
[base]
name=CentOS-7 - Base
baseurl=https://vault.centos.org/7.9.2009/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[updates]
name=CentOS-7 - Updates
baseurl=https://vault.centos.org/7.9.2009/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[extras]
name=CentOS-7 - Extras
baseurl=https://vault.centos.org/7.9.2009/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
EOF

You don’t need to delete any CentOS 8 repo files, we’ll just tell yum to only use these three.

3. Make sure the metadata actually loads

yum clean all
yum --releasever=7 --disablerepo='*' --enablerepo=base,updates,extras repolist

If you get certificate or SSL errors, check the clock and the ca-certificates package first, and post the exact error here.

4. Reinstall the kernel

yum --releasever=7 --disablerepo='*' --enablerepo=base,updates,extras install kernel

Make sure it finishes with “Complete!” and no errors from the install scripts, then confirm with rpm -q kernel. If anything errors out, paste the output here before doing anything else.

5. Check before you reboot

ls /boot/vmlinuz-* /boot/initramfs-*
grubby --info=ALL

You want a 3.10.0-1160.x kernel, a matching initramfs, and a grub entry. Installing the kernel should add the entry by itself. Only if it’s missing, rebuild with grub2-mkconfig -o /boot/grub2/grub.cfg (BIOS) or grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg (UEFI).

6. Check those rpm -Va warnings

Check whether the packages are installed and which package provides pidof:

rpm -q sysvinit-tools initscripts iprutils
rpm -q --whatprovides /sbin/pidof

If a dependency is missing, identify the package that provides it and restore it from the CentOS 7 Vault with the same yum --releasever=7 --disablerepo='*' --enablerepo=base,updates,extras install ... command. Then re-run rpm -Va --nofiles --nodigest and see whether the warnings remain. rpm -qa | grep el8 will also show any leftover EL8 packages. Paste the output if anything looks off.

If yum and dnf are both broken, don’t reboot, and please paste the exact errors from the steps above first. The safest route is booting CentOS 7 install media into rescue mode and fixing it from there. Doing it by hand is the last resort: the kernel RPMs are at Index of /7.9.2009/updates/x86_64/Packages, but a lone kernel RPM can fail on dependencies, and you still have to confirm the initramfs and grub entry exist before rebooting.

After it boots fine, I’d still plan the move to AlmaLinux rather than staying on 7.

Thank you for the richly detailed guidance.

I was able to restore the kernel and the three broken packages.

I had to complete an additional step of disabling BSL, by adding the following line to /etc/default/grub:

GRUB_ENABLE_BLSCFG=false

Some remaining concerns are:

  • The structure of the repository definitions is now quite unconventional.

  • The output of dnf check is:

    kernel-devel-3.10.0-1160.92.1.el7.x86_64 is a duplicate with kernel-devel-3.10.0-1160.119.1.el7.x86_64
    kernel-devel-3.10.0-1160.92.1.el7.x86_64 is a duplicate with kernel-devel-3.10.0-1160.95.1.el7.x86_64
    

The highest priority now is setting the system to a state of compatibility with ELevate.

Toward such ends, an additional point of concern is whether the new line in /etc/default/grub would interfere will successfully upgrading to Alma or Stream v8 using EL.

Glad you got the kernel and broken packages restored!

For the duplicate kernel-devel packages, I’d remove the older versions once you’ve confirmed they’re not needed.

I’m not sure whether GRUB_ENABLE_BLSCFG=false will cause issues with ELevate, so I wouldn’t want to give you a definite answer on that. I’d check the ELevate documentation and run the pre-upgrade check before making further changes. Make sure you have a backup before starting the migration.

Thank you for the continued assistance.

Removing the conflicting kernels has been successful.

I have been advised to search for any remaining packages from release 8.

The following results are printed by the command dnf list --installed | grep -i el8:

GeoIP.x86_64                                  1.6.12-7.el8                       @epel        
GeoIP-GeoLite-data.noarch                     2018.06-5.el8                      @epel        
centos-gpg-keys.noarch                        1:8-3.el8                          @@commandline
centos-linux-release.noarch                   8.5-1.2111.el8                     @@commandline
centos-linux-repos.noarch                     8-3.el8                            @@commandline
elevate-release.noarch                        1.0-3.el8                          @@commandline
epel-release.noarch                           8-22.el8                           @@commandline
leapp-data-almalinux.noarch                   0.11-10.el8.20251222               @elevate     
rhash.x86_64                                  1.3.8-1.el8                        @epel        
rkhunter.noarch                               1.4.6-7.el8                        @epel        

Meanwhile, I tried to charge ahead following the guide for ELevate.

However, I encountered significant problems, as follows, from the command dnf install -y leapp-upgrade:

Last metadata expiration check: 0:32:47 ago on Tue 27 Oct 2026 09:30:07 PM UTC.
Error: 
 Problem: conflicting requests
  - package leapp-upgrade-el8toel9-1:0.16.0-6.el8_6.elevate.10.noarch requires leapp-repository-dependencies = 6, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.16.0-6.el8_6.elevate.12.noarch requires leapp-repository-dependencies = 6, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.16.0-6.el8_6.elevate.13.noarch requires leapp-repository-dependencies = 6, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.16.0-6.el8_6.elevate.16.noarch requires leapp-repository-dependencies = 6, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.16.0-6.el8_6.elevate.17.noarch requires leapp-repository-dependencies = 6, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.16.0-6.el8_6.elevate.18.noarch requires leapp-repository-dependencies = 6, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.16.0-6.el8_6.elevate.19.noarch requires leapp-repository-dependencies = 6, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.16.0-6.el8_6.elevate.20.noarch requires leapp-repository-dependencies = 6, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.16.0-6.el8_6.elevate.8.noarch requires leapp-repository-dependencies = 6, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.19.0-7.1.el8.noarch requires leapp-repository-dependencies = 9, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.21.0-2.el8.elevate.2.noarch requires leapp-repository-dependencies = 10, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.21.0-2.el8.elevate.3.noarch requires leapp-repository-dependencies = 10, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.21.0-2.el8.elevate.4.noarch requires leapp-repository-dependencies = 10, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.21.0-4.el8.elevate.4.noarch requires leapp-repository-dependencies = 10, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.21.0-5.el8.elevate.1.noarch requires leapp-repository-dependencies = 10, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.21.0-5.el8.elevate.4.noarch requires leapp-repository-dependencies = 10, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.22.0-3.el8.elevate.1.noarch requires leapp-repository-dependencies = 10, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.23.0-1.el8.elevate.1.1.noarch requires leapp-repository-dependencies = 10, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.23.0-1.el8.elevate.1.noarch requires leapp-repository-dependencies = 10, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.24.0-1.el8.elevate.4.noarch requires leapp-repository-dependencies = 10, but none of the providers can be installed
  - package leapp-upgrade-el8toel9-1:0.24.0-1.el8.elevate.5.noarch requires leapp-repository-dependencies = 10, but none of the providers can be installed
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.10.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.10.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.10.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.10.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.10.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.12.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.12.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.12.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.12.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.12.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.13.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.13.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.13.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.13.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.13.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.16.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.16.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.16.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.16.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.16.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.17.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.17.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.17.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.17.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.17.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.18.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.18.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.18.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.18.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.18.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.19.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.19.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.19.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.19.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.19.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.20.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.20.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.20.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.20.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.20.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.8.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.8.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.8.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.8.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.8.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.19.0-7.1.el8.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.19.0-7.1.el8.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.19.0-7.1.el8.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.19.0-7.1.el8.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.19.0-7.1.el8.noarch
  - nothing provides python3-gobject-base needed by leapp-upgrade-el8toel9-deps-1:0.19.0-7.1.el8.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.2.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.2.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.2.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.2.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.2.noarch
  - nothing provides python3-gobject-base needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.2.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.3.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.3.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.3.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.3.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.3.noarch
  - nothing provides python3-gobject-base needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.3.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.4.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.4.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.4.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.4.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.4.noarch
  - nothing provides python3-gobject-base needed by leapp-upgrade-el8toel9-deps-1:0.21.0-2.el8.elevate.4.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.21.0-4.el8.elevate.4.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.21.0-4.el8.elevate.4.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.21.0-4.el8.elevate.4.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.21.0-4.el8.elevate.4.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.21.0-4.el8.elevate.4.noarch
  - nothing provides python3-gobject-base needed by leapp-upgrade-el8toel9-deps-1:0.21.0-4.el8.elevate.4.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.21.0-5.el8.elevate.1.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.21.0-5.el8.elevate.1.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.21.0-5.el8.elevate.1.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.21.0-5.el8.elevate.1.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.21.0-5.el8.elevate.1.noarch
  - nothing provides python3-gobject-base needed by leapp-upgrade-el8toel9-deps-1:0.21.0-5.el8.elevate.1.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.21.0-5.el8.elevate.4.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.21.0-5.el8.elevate.4.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.21.0-5.el8.elevate.4.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.21.0-5.el8.elevate.4.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.21.0-5.el8.elevate.4.noarch
  - nothing provides python3-gobject-base needed by leapp-upgrade-el8toel9-deps-1:0.21.0-5.el8.elevate.4.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.22.0-3.el8.elevate.1.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.22.0-3.el8.elevate.1.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.22.0-3.el8.elevate.1.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.22.0-3.el8.elevate.1.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.22.0-3.el8.elevate.1.noarch
  - nothing provides python3-gobject-base needed by leapp-upgrade-el8toel9-deps-1:0.22.0-3.el8.elevate.1.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.23.0-1.el8.elevate.1.1.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.23.0-1.el8.elevate.1.1.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.23.0-1.el8.elevate.1.1.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.23.0-1.el8.elevate.1.1.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.23.0-1.el8.elevate.1.1.noarch
  - nothing provides python3-gobject-base needed by leapp-upgrade-el8toel9-deps-1:0.23.0-1.el8.elevate.1.1.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.23.0-1.el8.elevate.1.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.23.0-1.el8.elevate.1.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.23.0-1.el8.elevate.1.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.23.0-1.el8.elevate.1.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.23.0-1.el8.elevate.1.noarch
  - nothing provides python3-gobject-base needed by leapp-upgrade-el8toel9-deps-1:0.23.0-1.el8.elevate.1.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.24.0-1.el8.elevate.4.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.24.0-1.el8.elevate.4.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.24.0-1.el8.elevate.4.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.24.0-1.el8.elevate.4.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.24.0-1.el8.elevate.4.noarch
  - nothing provides python3-gobject-base needed by leapp-upgrade-el8toel9-deps-1:0.24.0-1.el8.elevate.4.noarch
  - nothing provides python3-requests needed by leapp-upgrade-el8toel9-deps-1:0.24.0-1.el8.elevate.5.noarch
  - nothing provides python3-six needed by leapp-upgrade-el8toel9-deps-1:0.24.0-1.el8.elevate.5.noarch
  - nothing provides policycoreutils-python-utils needed by leapp-upgrade-el8toel9-deps-1:0.24.0-1.el8.elevate.5.noarch
  - nothing provides python3-pyudev needed by leapp-upgrade-el8toel9-deps-1:0.24.0-1.el8.elevate.5.noarch
  - nothing provides systemd-container needed by leapp-upgrade-el8toel9-deps-1:0.24.0-1.el8.elevate.5.noarch
  - nothing provides python3-gobject-base needed by leapp-upgrade-el8toel9-deps-1:0.24.0-1.el8.elevate.5.noarch

I am left once again wondering about the best path toward resolution.

Thanks for the full output. I’m not sure yet, but this looks like EL8 packages ending up on an EL7 system.

  • leapp-upgrade-el8toel9 is the EL8 → EL9 tool. CentOS 7 → AlmaLinux 8 is a separate migration stage.
  • Your package list includes EL8 versions of elevate-release and leapp-data-almalinux, and the missing dependencies suggest DNF is trying to resolve EL8 packages against repositories that can’t provide them.

The earlier upgrade attempt changed a lot of packages, so I’d check the current state before suggesting any repairs. Could you post the output of these read-only checks? Use yum instead of dnf where necessary.

cat /etc/redhat-release
rpm --eval %rhel
rpm -q centos-release centos-linux-release
uname -r
ls /etc/yum.repos.d/
dnf repolist --enabled
dnf check

You can also preview the proposed removal transaction without applying it. Run the command below, review the package list, and answer N at the confirmation prompt. Use yum instead if needed.

dnf remove elevate-release leapp-data-almalinux

Don’t remove anything yet. The proposed transaction is useful for diagnosis, but it doesn’t establish that removing those packages is safe.

Once the system state is clearer, the next steps will be easier to determine. A snapshot from before the first attempt is still the safest recovery option; otherwise, a fresh AlmaLinux installation followed by restoring your data may be more predictable than manually repairing a partially converted system.

For reference, here’s the official ELevate guide covering the CentOS 7 → AlmaLinux 8 migration stage.

Thank you for your continued guidance.

Safely undertaking a full migration is not strongly feasible under the current circumstances.

I am hoping the system can be restored to health.

Below is the output for each command you requested.


  • cat /etc/redhat-release:

    CentOS Linux release 8.5.2111
    
  • rpm --eval %rhel:

    8
    
  • rpm -q centos-release centos-linux-release:

    package centos-release is not installed
    package centos-linux-releas is not installed
    
  • uname -r:

    3.10.0-1160.119.1.el7.x86_64
    
  • ls -1 /etc/yum.repos.d/:

    CentOS-Base.repo
    CentOS-Base.repo.rpmsave
    CentOS-CR.repo.rpmsave
    CentOS-fasttrack.repo.rpmsave
    CentOS-Linux-ContinuousRelease.repo
    CentOS-Linux-Debuginfo.repo
    CentOS-Linux-Devel.repo
    CentOS-Linux-FastTrack.repo
    CentOS-Linux-HighAvailability.repo
    CentOS-Linux-Media.repo
    CentOS-Linux-Plus.repo
    CentOS-Linux-PowerTools.repo
    CentOS-Linux-Sources.repo
    CentOS-Sources.repo.rpmsave
    CentOS-Vault.repo.rpmnew
    CentOS-Vault.repo.rpmsave
    docker-ce.repo_backup
    ELevate.repo
    epel-modular.repo
    epel.repo
    epel-testing-modular.repo
    epel-testing.repo
    
  • dnf repolist --enabled:

    ELevate                                         0.0  B/s |   0  B     00:00    
    Extra Packages for Enterprise Linux 8 - x86_64  0.0  B/s |   0  B     00:00    
    CentOS-8 - Base                                 0.0  B/s |   0  B     00:00    
    CentOS-8 - Updates                              0.0  B/s |   0  B     00:00    
    CentOS-8 - Extras                               0.0  B/s |   0  B     00:00    
    repo id          repo name                                                status
    base             CentOS-8 - Base                                          10,072
    elevate          ELevate                                                     152
    epel             Extra Packages for Enterprise Linux 8 - x86_64           10,350
    extras           CentOS-8 - Extras                                           526
    updates          CentOS-8 - Updates                                        6,173
    
  • dnf check:

    No output.

  • dnf remove elevate-release leapp-data-almalinux:

    Dependencies resolved.
    ================================================================================
     Package                Arch     Version                  Repository       Size
    ================================================================================
    Removing:
     elevate-release        noarch   1.0-3.el8                @@commandline   3.5 k
     leapp-data-almalinux   noarch   0.11-10.el8.20251222     @elevate         30 M
    ​
    Transaction Summary
    ================================================================================
    Remove  2 Packages
    ​
    Freed space: 30 M
    Is this ok [y/N]: 
    

    Aborted.

Honestly, at this point, I wouldn’t recommend manually swapping release packages. The system is in a mixed EL7/EL8 state, and there’s no guarantee we can safely reverse the changes with a few commands.

If a full migration isn’t feasible, I’d suggest backing up the important data and considering a repair install or restoring from a known-good backup. I don’t want to give you commands that could make things worse.

I’m glad I was able to help in some way and that you managed to restore the kernel and broken packages! If you’d like, we can dig deeper into the package state and explore other recovery options together but I’d rather be careful than risk breaking the system further.