Bug 1465292
| Summary: | DNF remove protected duplicate package | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Lari Tanase <larieu> |
| Component: | dnf | Assignee: | Jaroslav Mracek <jmracek> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 25 | CC: | dmach, jmracek, mcrha, packaging-team-maint, rpm-software-management, samuel.rakitnican, vmukhame |
| Target Milestone: | --- | Keywords: | Triaged, UserExperience |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | dnf-2.7.2-1.fc27 dnf-2.7.2-1.fc26 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-10-04 14:24:24 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Lari Tanase
2017-06-27 06:48:05 UTC
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. |