Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1782470

Summary: Protected packages are listed as auto-removable
Product: [Fedora] Fedora Reporter: ricky.tigg
Component: dnfAssignee: Pavla Kratochvilova <pkratoch>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 31CC: dmach, jmracek, jrohel, mblaha, mhatina, packaging-team-maint, pkratoch, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-17 12:50:34 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 ricky.tigg 2019-12-11 17:14:44 UTC
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.

Comment 1 Pavla Kratochvilova 2019-12-17 12:50:34 UTC
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 ***