Hi

On Sun, 17 Nov 2024 21:18:07 +0100 francis.montag...@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

-- 
francis
-- 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to