rpm-software-management / dnf5

Next-generation RPM package management system
Other
239 stars 76 forks source link

Protected packages breaks autoremoval of unsed dependenices #1614

Open ppisar opened 1 month ago

ppisar commented 1 month ago

It seems that protected packages break automatic removal of unused dependencies:

# dnf5 install kiwi-systemdeps-bootloaders
[...]
# dnf5 remove kiwi-systemdeps-bootloaders
Failed to resolve the transaction:
Problem: The operation would result in removing the following protected packages: grub2-efi-ia32, grub2-efi-x64

Affected packages:

dnf5-5.2.5.0-20240805005756.19.g04d9908f.fc41.x86_64 libsolv-0.7.30-20240805005745.0.g27aa6a72.fc41.x86_64

Observed with Fedora 41 buildroot repository.

ppisar commented 1 month ago

For completeness, "dnf remove --no-autoremove kiwi-systemdeps-bootloaders" successfully removes that package. So it's not about a dependency loop.

ppisar commented 1 month ago

It happens if an installation reason of the protected packages is "dependency".