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
--
NB: All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the list.
The following system info data is generated fresh for each post:
uname -rsvp
Linux 6.2.14-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 1 00:54:35
UTC 2023 x86_64