Bug 963345
| Summary: | [rfe] autoremove | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Rahul Sundaram <metherid> |
| Component: | dnf | Assignee: | Ales Kozumplik <akozumpl> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | CC: | akozumpl, jzeleny, mls, pavel.lisy |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | dnf-plugins-core-0.0.8-2.fc20 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-05-31 23:57:03 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
Rahul Sundaram
2013-05-15 17:28:10 UTC
'autoremove' in yum works by looking at the leaf rpmdb packages and intersecting this set with packages marked in yumdb with reason 'dep'. DNF keeps the same information for packages installed through DNF). Note however that DNF by itself will not leave any leaf packages behind as long as the clean_requirements_on_remove config option is True. Giving this low priority. (FYI: libsolv has a solver_get_unneeded() function that returns a set of "unneeded" packages) (In reply to Michael Schröder from comment #2) > (FYI: libsolv has a solver_get_unneeded() function that returns a set of > "unneeded" packages) sweet!! I have problem with actual upgrade.
My question is if this enhancement can resolve it or I need create new bug report.
DNF update fails because it doesn't do automatic remove of obsolete package
# dnf update
Resolving dependencies
--> Starting dependency resolution
--> Finished dependency resolution
Error: package kmod-nvidia-3.11.10-301.fc20.x86_64-1:331.20-10.fc20.x86_64 requires kernel-uname-r = 3.11.10-301.fc20.x86_64, but none of the providers can be installed
but YUM can make it:
# yum update
....
Installing for dependencies:
kmod-nvidia-3.12.7-300.fc20.x86_64
x86_64 1:331.20-10.fc20.3 rpmfusion-nonfree-updates
Removing for dependencies:
kmod-nvidia-3.11.10-301.fc20.x86_64
x86_64 1:331.20-10.fc20 @rpmfusion-nonfree
14 M
Transaction Summary
=============================================================================
Install 3 Packages (+1 Dependent package)
Upgrade 60 Packages
Remove 3 Packages (+1 Dependent package)
Total size: 215 M
Total download size: 149 M
Is this ok [y/d/N]:
dnf doesn't know that it can / has to remove obsolete package
kmod-nvidia-3.11.10-301.fc20.x86_64
This more likely seems like the well documented issue with updates: http://dnf.baseurl.org/2014/01/02/dnf-update-and-yum-update-produce-different-output/ Have you synced your metadata? I did this: dnf clean all dnf update with the same result I don't thik this is problem with obsolete metadata. Explanation: dnf is trying to remove old kernel but forgets to remove old kmod-nvidia-3.11.10-301.fc20.x86_64 DNF output: ----------- dnf list kernel Installed Packages kernel.x86_64 3.11.10-301.fc20 @System kernel.x86_64 3.12.5-302.fc20 @System kernel.x86_64 3.12.6-300.fc20 @System Available Packages kernel.x86_64 3.12.7-300.fc20 updates dnf list kmod-nvidia Installed Packages kmod-nvidia.x86_64 1:331.20-10.fc20.2 @System Available Packages kmod-nvidia.x86_64 1:331.20-10.fc20.3 rpmfusion-nonfree-updates YUN output: ----------- yum list kernel Loaded plugins: langpacks, refresh-packagekit Installed Packages kernel.x86_64 3.11.10-301.fc20 @fedora kernel.x86_64 3.12.5-302.fc20 @updates kernel.x86_64 3.12.6-300.fc20 installed Available Packages kernel.x86_64 3.12.7-300.fc20 updates yum list kmod-nvidia Loaded plugins: langpacks, refresh-packagekit Installed Packages kmod-nvidia.x86_64 1:331.20-10.fc20.2 installed Available Packages kmod-nvidia.x86_64 1:331.20-10.fc20.3 rpmfusion-nonfree-updates Pavel, you are being hit by bug 1033881. Not related to autoremove. Thanks for info Implemented upstream with 8cfef27. In the end this is not a plugin (it handles the Goal object in a special way that is currently not possible through the exposed API) dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/libsolv-0.6.1-1.git6d968f1.fc20,hawkey-0.4.16-1.fc20,dnf-0.5.2-1.fc20,dnf-plugins-core-0.0.8-2.fc20 Package dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.0.8-2.fc20 libsolv-0.6.1-1.git6d968f1.fc20 hawkey-0.4.16-1.fc20 dnf-0.5.2-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-6789/libsolv-0.6.1-1.git6d968f1.fc20,hawkey-0.4.16-1.fc20,dnf-0.5.2-1.fc20,dnf-plugins-core-0.0.8-2.fc20 then log in and leave karma (feedback). dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |