Description of problem: dnf fails to remove "protected" packages as an example systemd-0:231-10.fc25.x86_64 systemd-libs-0:231-10.fc25.x86_64 systemd-pam-0:231-10.fc25.x86_64 systemd-udev-0:231-10.fc25.x86_64 Version-Release number of selected component (if applicable): dnf.noarch 1.1.10-3.fc25 @anaconda dnf.noarch 1.1.10-6.fc25 @System How reproducible: each time Steps to Reproduce: 1. install a fresh copy of fedora 2. during update find a way to freeze the update (my Asus UX501VW did this at first update because I didn't "mend" the grub options with acpi_backlight=native acpi_osi=! acpi_osi='Windows 2009') 3. now I have a bunch of duplicates Actual results: lots of duplciates while the "non protected ones" can be removed, the protected ones no Expected results: is there are duplicate df should remove older versions Additional info:
I have found a way to circumvent this you need to add --disableplugin=protected_packages this for specific packages BE CAREFULL TO USE FULL VERSION OF OLD PACKAGES as here dnf.noarch-1.1.10-3.fc25 dnf.noarch-1.1.10-6.fc25 systemd-0:231-10.fc25.x86_64 systemd-0:231-15.fc25.x86_64 systemd-libs-0:231-10.fc25.x86_64 systemd-libs-0:231-15.fc25.x86_64 systemd-pam-0:231-10.fc25.x86_64 systemd-pam-0:231-15.fc25.x86_64 systemd-udev-0:231-10.fc25.x86_64 systemd-udev-0:231-15.fc25.x86_64 you issue sudo dnf remove --disableplugin=protected_packages dnf.noarch-1.1.10-3.fc25 systemd-0:231-10.fc25.x86_64 systemd-libs-0:231-10.fc25.x86_64 systemd-pam-0:231-10.fc25.x86_64 systemd-udev-0:231-10.fc25.x86_64
So after a failed upgrade I am left to remove all the dupes, --disableplugin=protected_packages however for some reason does not have an effect for me. $ rpm -q dnf dnf-2.4.1-1.fc26.noarch dnf-2.5.1-1.fc26.noarch $ sudo dnf --disableplugin=protected_packages remove dnf-2.5.1-1.fc26.noarch Error: Problem: The operation would result in removing the following protected packages: dnf
Since my is a different issue, I've opened different bug #1467304 .
I would like to provide some improvement, but first I have to brake my system to have testing environment for development.
I created a patch that enhance ``remove --duplicates``. It even allows to remove duplicated protected packages if the newest is available (https://github.com/rpm-software-management/dnf/pull/880). The new implementation also installs missing dependencies of the newest package.
*** Bug 1486137 has been marked as a duplicate of this bug. ***
dnf-plugins-extras-2.0.3-1.fc27 dnf-plugins-core-2.1.4-1.fc27 dnf-2.7.2-1.fc27 libdnf-0.10.1-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-faf235c683
dnf-plugins-extras-2.0.3-1.fc26 dnf-plugins-core-2.1.4-1.fc26 dnf-2.7.2-1.fc26 libdnf-0.10.1-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-70a8618065
dnf-2.7.2-1.fc26, dnf-plugins-core-2.1.4-1.fc26, dnf-plugins-extras-2.0.3-1.fc26, libdnf-0.10.1-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-70a8618065
dnf-2.7.2-1.fc27, dnf-plugins-core-2.1.4-1.fc27, dnf-plugins-extras-2.0.3-1.fc27, libdnf-0.10.1-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-faf235c683
dnf-2.7.2-1.fc27, dnf-plugins-core-2.1.4-1.fc27, dnf-plugins-extras-2.0.3-1.fc27, libdnf-0.10.1-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
dnf-2.7.2-1.fc26, dnf-plugins-core-2.1.4-1.fc26, dnf-plugins-extras-2.0.3-1.fc26, libdnf-0.10.1-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.