Hi
On Sun, 17 Nov 2024 21:18:07 +0100 Francis.Montagnac@inria.fr wrote:
Note: there is probably duplicates RPMs. dnf4 provides (not dnf5 AFAIK):
dnf remove --duplicates
that may help before distro-sync
I had today a machine (a VM with only 4G of memory) where an upgrade with "dnf distro-sync" failed with result 'oom-kill' (no time to investigate the precise reason of that).
There was a lot of duplicate packages, including protected packages like dnf and systemd.
dnf was still pointing to dnf4 (through /usr/bin/dnf-3).
I managed to repair with:
- dnf --setopt=keepcache=yes --setopt=protected_packages= \ remove --duplicates > FILE < /dev/null
Look then carefully at the list of packages to reinstall, then ran it in real:
- nohup dnf -y --setopt=keepcache=yes --setopt=protected_packages= \ remove --duplicates
I finished then the upgrade with: dnf -y distro-sync
I saw that dnf5 has an issue to provide "remove --duplicates":
https://github.com/rpm-software-management/dnf5/issues/760