Red Hat Bugzilla – Bug 1279509
dnf does not protect itself from being removed by itself
Last modified: 2015-11-16 05:53:00 EST
Description of problem:
Despite /etc/dnf/protected.d/dnf.conf listing dnf, dnf will remove itself when asked, e.g. to remove python3.
$ cat /etc/dnf/protected.d/dnf.conf
Analysis with strace shows that this file is never accessed in the process.
Version-Release number of selected component (if applicable):
sudo dnf -y remove python3
dnf removes python3 and packages that depend on it, including itself.
dnf aborts before removing any package.
Closing as notabug because installing dnf-plugins-core fixes it.
Technically still a bug because system-upgrade from F22 left the system without that package.