Re: Partial dnf-system-upgrade and broken dnf?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

On Sun, 17 Nov 2024 21:18:07 +0100 Francis.Montagnac@xxxxxxxx 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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux