Description of problem: Protected packages are listed as auto-removable Version-Release number of component: dnf.noarch 4.2.17-1.fc31 # dnf -qy autoremove Error: Problem: The operation would result in removing the following protected packages: kernel-core Expected results: Protected packages not to be eligible for removing, thus not listed.
The problem is fixed in dnf-4.2.17 for newly installed systems. On older systems, however, dnf is still trying to remove the kernel, because it forgot the original install reason. To fix it, just run "dnf mark install kernel kernel-modules". *** This bug has been marked as a duplicate of bug 1769788 ***