Description of problem: Doing a dnf reinstall on a package deletes associated yumdb entry in /var/lib/dnf/yumdb. This also has the side effect of deleting its reason file, which prevents dependency packages that have been reinstalled from being autoremoved. Version-Release number of selected component (if applicable): 1.1.9 How reproducible: Every time Steps to Reproduce: 1. dnf install ghex. This will install ghex and ghex-libs 2. Notice that there are entries in /var/lib/dnf/yumdb/g for ghex and ghex-libs 3. Do dnf reinstall ghex-libs. Notice that ghex-libs no longer appears in /var/lib/dnf/yumdb/g 4. Do dnf remove ghex. Notice that ghex-libs isn't autoremoved Actual results: dnf reinstall deletes yumdb entries of any reinstalled packages and deletes reason file, preventing autoremove from working properly. Expected results: dnf reinstall keeps yumdb entry intact
Still present on Fedora 24. Before dnf reinstall ghex: $ ls /var/lib/dnf/yumdb/g | grep ghex 74f03c526daa159f5af485e76dd0731ac2d3894b-ghex-libs-3.18.1-1.fc24-x86_64 ecddc226d3eea7fcca991299163410bdf0304748-ghex-3.18.1-1.fc24-x86_64 After dnf reinstall ghex: $ ls /var/lib/dnf/yumdb/g | grep ghex 74f03c526daa159f5af485e76dd0731ac2d3894b-ghex-libs-3.18.1-1.fc24-x86_64
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
PR was created: https://github.com/rpm-software-management/dnf/pull/538
I am curious as to how this PR is relevant to this bug. Why would changing last to --last fix the issue of dnf deleting yumdb entries when calling "dnf reinstall <package>"?
Sorry, bad link... https://github.com/rpm-software-management/dnf/commit/2463a329c429cf240387fc3d0d47db1e2a5855d2
Fantastic! Thanks for the fix. I am glad to see all these DNF issues being resolved.
dnf-1.1.10-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-267f843cda
dnf-1.1.10-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-8caa619a9e
dnf-1.1.10-1.fc24 dnf-plugins-core-0.1.21-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-878284e0d3
dnf-1.1.10-1.fc25, dnf-plugins-core-0.1.21-4.fc25 has been pushed to the Fedora 25 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-2016-8caa619a9e
dnf-1.1.10-1.fc23, dnf-plugins-core-0.1.21-3.fc23 has been pushed to the Fedora 23 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-2016-267f843cda
dnf-1.1.10-1.fc24, dnf-plugins-core-0.1.21-3.fc24 has been pushed to the Fedora 24 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-2016-878284e0d3
dnf-1.1.10-1.fc24, dnf-plugins-core-0.1.21-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
dnf-1.1.10-1.fc23, dnf-plugins-core-0.1.21-3.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
dnf-1.1.10-1.fc25, dnf-plugins-core-0.1.21-4.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.