On 5/18/23 20:36, Tim via users wrote:
On Thu, 2023-05-18 at 20:15 -0600, home user wrote:
What's the correct, best-practice way to remove the oldest kernel?
To remove a kernel, make sure that you're not currently using it. Then
it's simply rpm --erase or dnf erase kernel-(with the full version
numbers).
On my system these are installed:
$ rpm -q kernel
kernel-6.1.18-100.fc36.x86_64
kernel-6.2.8-100.fc36.x86_64
kernel-6.2.14-100.fc36.x86_64
The oldest is kernel-6.1.18-100.fc36.x86_64, so I could
rpm --erase kernel-6.1.18-100.fc36.x86_64
That will only remove the empty package and you don't want to use rpm to
do it anyway. The best option is to "dnf remove kernel-core-..." which
will also remove the related packages.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue