Bug 947258
Summary: | dnf doesn't erase excluded packages | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Cristian Ciupitu <cristian.ciupitu> | ||||||
Component: | dnf | Assignee: | Ales Kozumplik <akozumpl> | ||||||
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | low | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 18 | CC: | akozumpl, jzeleny | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | dnf-0.3.2 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2013-04-03 13:42:50 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: | |||||||||
Attachments: |
|
Description
Cristian Ciupitu
2013-04-02 00:18:17 UTC
Hmmm, odd. Can you attach the two packages to thiz bugzilla please? You installed these two packages with 'dnf install kobbler.. .rpm coan.. .rpm', yes? I might have installed those packages with yum, but I've retested everything with dnf at your request. [root@hermes ~]# dnf install ~ciupicri/3rdparty-projects/cobbler/rpm-build/cobbler-2.3.1-1.fc18.noarch.rpm ~ciupicri/3rdparty-projects/cobbler/rpm-build/koan-2.3.1-1.fc18.noarch.rpm Setting up Install Process Resolving Dependencies --> Starting dependency resolution ---> Package cobbler.noarch 2.3.1-1.fc18 will be installed ---> Package koan.noarch 2.3.1-1.fc18 will be installed --> Finished dependency resolution Dependencies Resolved =============================================================================== Package Arch Version Repository Size =============================================================================== Installing: cobbler noarch 2.3.1-1.fc18 @commandline 596 k koan noarch 2.3.1-1.fc18 @commandline 177 k Transaction Summary =============================================================================== Install 2 Packages Total size: 772 k Installed size: 772 k Is this ok [y/N]: y Downloading Packages: Running Transaction Check Running Transaction Test Transaction Test Succeeded Running Transaction RPMDB altered outside of DNF. Installing : koan-2.3.1-1.fc18.noarch 1/2 Installing : cobbler-2.3.1-1.fc18.noarch 2/2 Verifying : cobbler-2.3.1-1.fc18.noarch 1/2 Verifying : koan-2.3.1-1.fc18.noarch 2/2 Installed: cobbler.noarch 2.3.1-1.fc18 koan.noarch 2.3.1-1.fc18 Complete! [root@hermes ~]# dnf erase cobbler koan Setting up Remove Process No Packages marked for removal Created attachment 730686 [details]
cobbler-2.3.1-1.fc18.noarch.rpm
Created attachment 730687 [details]
koan-2.3.1-1.fc18.noarch.rpm
If I temporary disable "exclude=cobbler,koan", dnf asks me if I want to remove those packages. As we found out on IRC yesterday, this is because DNF extends the semantics of excludes to all operations, erase included (unlike yum where excludes only apply to installs and upgrades). This is documented in commit c2ec957, dnf-0.3.2: http://akozumpl.github.com/dnf/cli_vs_yum.html#excludes-and-repo-excludes-apply-to-all-operations While at it I found out that --disableexcludes and more granular per-repo excludes don't work in DNF at all. This is addressed by commit 5cb7f5e. Thanks again for the report. |