Bug 1471473

Summary: Removing specific kernel packages resulted in 584 additional packages candidates for removal
Product: [Fedora] Fedora Reporter: George R. Goffe <grgoffe>
Component: dnfAssignee: rpm-software-management
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: dmach, mhatina, packaging-team-maint, rpm-software-management, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-19 11:23:52 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:
Attachments:
Description Flags
tar.gz of debugdata created by dnf for this problem none

Description George R. Goffe 2017-07-16 08:46:31 UTC
Created attachment 1299265 [details]
tar.gz of debugdata created by dnf for this problem

Description of problem:

Attempting to remove kernel packages related to the git6 kernel which possibly has a bug that precludes booting successfully.

Removing the extra kernel packages (see below) with dnf erase <packages> resulted in 584 additional packages wanting to be removed.

Version-Release number of selected component (if applicable):
dnf-2.5.1-1.fc27.noarch

How reproducible:
readily

Steps to Reproduce:
1.see script below
2.
3.

Actual results:

584 packages wanting to be removed

Expected results:

packages removed as requested

Additional info:

#!/bin/bash -xv

 dnf --debugsolver erase                                            \
     kernel-core-4.13.0-0.rc0.git6.1.fc27.x86_64                    \
     kernel-cross-headers-4.13.0-0.rc0.git6.1.fc27.x86_64           \
     kernel-devel-4.13.0-0.rc0.git6.1.fc27.x86_64                   \
     kernel-headers-4.13.0-0.rc0.git6.1.fc27.x86_64                 \
     kernel-modules-4.13.0-0.rc0.git6.1.fc27.x86_64                 \
     kernel-modules-extra-4.13.0-0.rc0.git6.1.fc27.x86_64           \
     kernel-tools-4.13.0-0.rc0.git6.1.fc27.x86_64                   \
     kernel-tools-libs-4.13.0-0.rc0.git6.1.fc27.x86_64              \
     kernel-tools-libs-devel-4.13.0-0.rc0.git6.1.fc27.x86_64

Comment 1 Igor Gnatenko 2017-07-19 11:23:52 UTC
All those packages are unneeded, so dnf automatically removes them.

--setopt=clean_requirements_on_remove=False

but next dnf autoremove/remove will clean them... So if you want any of those packages, use `dnf mark install` on them.

Comment 2 George R. Goffe 2017-07-20 02:34:59 UTC
Igor,

I a little confused about what you've said.

These packages are already installed. Marking them as install wouldn't change that, right?

I presume that you mean not needed by other packages. Yes? That doesn't mean that someone (a user) isn't using them.

See the confusion?

Regards,

George...