Bug 1657287
Summary: | cannot autoremove unused kernel package when kernel-modules is installed | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Maciek Borzecki <maciek.borzecki> |
Component: | dnf | Assignee: | Jaroslav Mracek <jmracek> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 29 | CC: | dmach, mblaha, mhatina, packaging-team-maint, 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: | 2018-12-10 13:24:01 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
Maciek Borzecki
2018-12-07 15:24:19 UTC
Kernel is installonly package and therefore it is not automatically removed. The number of kept installonly packages can be set in /etc/dnf/dnf.conf with key installonly_limit. If I have installonly_limit=3 it means that 3 kernel packages will be kept on the system. Minimal number is 2 and it is for good reason. Hope that it helps. I think there's still something fishy: [guest@localhost ~]$ sudo dnf --setopt installonly_limit=1 autoremove Last metadata expiration check: 0:07:38 ago on Mon 10 Dec 2018 03:55:06 PM UTC. Error: Problem: The operation would result in removing the following protected packages: kernel-core Any suggestions how to tell dnf autoremove to clean up unused kernel versions? Removing them manually via dnf remove works. |