How to remove this


I was wondering how do i remove these previous version of this I asked chat gpt it gave me "sudo grub2-mkconfig -o /boot/grub2/grub.cfg " command i ran it but it didn’t worked

Upgrade to 41, "dnf remove --oldinstallonly" doesn't work in dnf5 - #3 by vgaetera

1 Like

You shouldn’t, just keep them!

1 Like

By default 3 kernels are kept, just in cade a new kernel causes problems.
If you find a new kernel does not work you can boot up from an older working kernel.

2 Likes

You have to understand that as an absolute minimum there MUST be 2 kernels installed. The kernel you were booted in when you did the update and the new kernel you just installed. Fedora keeps a total of 3 so an older kernel is available should the new kernel not boot properly.

Fedora also keeps the rescue kernel in case of emergencies where the regular kernel has a problem booting.

Kernels take a relatively small amount of space so it should not be an issue for storage on most systems.

An example where chatGPT is clueless about your system. Relying on todays LLMs is not possible in most cases since they are not current and answers are created from older and possibly erroneous info on the internet.

1 Like