Red Hat Bugzilla – Bug 1175098
dnf: unowned dir /etc/dnf/protected.d
Last modified: 2015-02-20 03:32:53 EST
Description of problem:
The directory /etc/dnf/protected.d should be owned by the "dnf"-package
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Set up a mock chroot and install dnf:
# mock -r fedora-21-x86_64 --init
# mock -r fedora-21-x86-64 --install dnf
2. Enter the mock-chroot and check /etc/dnf/protected.d's ownership
# mock -r fedora-21-x86_64 --shell
# rpm -qf /etc/dnf/protected.d
file /etc/dnf/protected.d is not owned by any package
dnf to own /etc/dnf/protected.d
This bug causes "yum remove dnf" to not uninstall properly.
It leaves a stray /etc/dnf/protected.d directory behind.
Fix in git for f20, f21 and rawhide.
I am not going to push these packages to testing/updates, but I am leaving the decision to the official maintainers.
Thanks for the report and patch, Ralf. DNF project on github  contains spec file. Next time you can fix an issue in the upstream by creating pull request and become part of DNF authors.
dnf-plugins-core-0.1.5-1.fc21,hawkey-0.5.3-2.fc21,dnf-0.6.4-1.fc21 has been submitted as an update for Fedora 21.
hawkey-0.5.3-2.fc21, dnf-plugins-core-0.1.5-1.fc21, dnf-0.6.4-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.