Sample Header Ad - 728x90

How can I get DNF to ignore dependencies when upgrading a package?

4 votes
1 answer
856 views
Fedora 41 - x86_64 - problem with libheif A few months ago, a minor change in the camera app in Apple iOS started using the HEIC image file format in a new way, which triggered a bug in the
library. By the time I ran into the problem, it had been fixed upstream and in Fedora Rawhide, but not yet in the main Fedora repos. I fetched the RPM and installed it, but now that the fix is available in the mainstream, I am getting errors:
[lars@cleo ~]$ sudo dnf --setopt=install_weak_deps=False update libheif
Updating and loading repositories:
Repositories loaded.
Problem: problem with installed package
  - installed package libheif-freeworld-1.19.5-2.fc41.x86_64 requires libheif(x86-64) = 1.19.5, but none of the providers can be installed
  - package libheif-freeworld-1.19.5-2.fc41.x86_64 from rpmfusion-free-updates requires libheif(x86-64) = 1.19.5, but none of the providers can be installed
  - package libheif-freeworld-1.17.6-4.fc41.x86_64 from rpmfusion-free requires libheif(x86-64) = 1.17.6, but none of the providers can be installed
  - cannot install both libheif-1.19.7-1.fc41.x86_64 from updates and libheif-1.19.5-3.fc41.x86_64 from @System
  - cannot install both libheif-1.17.6-2.fc41.x86_64 from fedora and libheif-1.19.7-1.fc41.x86_64 from updates
  - cannot install the best update candidate for package libheif-1.19.5-3.fc41.x86_64

Package                   Arch   Version                   Repository                Size
Skipping packages with conflicts:
 libheif                  x86_64 1.19.7-1.fc41             updates                1.3 MiB
 libheif                  x86_64 1.17.6-2.fc41             fedora               943.4 KiB
Skipping packages with broken dependencies:
 libheif-freeworld        x86_64 1.17.6-4.fc41             rpmfusion-free       146.6 KiB
 libheif-freeworld        x86_64 1.19.5-2.fc41             rpmfusion-free-updat 152.0 KiB

Nothing to do.
[lars@cleo ~]$
I would like to
each of the two packages while ignoring the possible conflict. How can I do that?
Asked by Lars Poulsen (357 rep)
Mar 29, 2025, 06:27 PM
Last activity: Mar 29, 2025, 07:28 PM