Ask Your Question
0

How to delete old fedora 23 kernels from refind menu?

asked 2016-01-01 17:22:47 -0500

dmercer08 gravatar image

updated 2016-01-02 09:39:01 -0500

Just did a dual boot install of fedora 23 on my macbook pro mid 2012, Im using refind as my bootloader. When I first installed fedora 23 refind was showing two icons for the same kernel which was 4.2.3, after doing a upgrade, my system upgraded to kernel 4.2.8... Now on refind I have two icons for kernel 4.2.3 and one icon for kernel 4.2.8. I used "dnf remove" to delete the 4.2.3 kernel(old one) and when I do rpm -q kernel command it only shows 4.2.8 but when i restart my cpu all three entries still show in refind and im still able to load the old kernel of 4.2.3.... When i load 4.2.8 and run the command to remove 4.2.3 it says "no match for argument" as if it doesnt exist but the old kernel still shows up in refind and i can still boot into that kernel.... so please someone tell me how to remove the old kernels... I know you are supposed to leave one working but I dont want 2 and if something goes wrong i will just reinstall.....

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-01-05 05:12:12 -0500

tomodachi gravatar image

If you have uninstalled the kernels still showing up in refit/refind

I believe its because the files exist or have been copied to /boot/efi/EFI

remove each unwanted folder there that contains the extraneous kernel and vmlinuz and the entries will disappear from refind

edit flag offensive delete link more
0

answered 2016-01-02 02:12:53 -0500

Hello

Did you remove package called kernel-<version> only? This is only meta package for kernel now. Remove also package kernel-core-<version>, this will remove linux kernel (vmlinuz) of specified version and check whether refind menu still shows old kernel version.

edit flag offensive delete link more

Comments

Ok thanks, I removed the core and that removed one of the entries from refind but there still one left of 4.2.3 and that one is not working..... when I do rpm -qa | grep kernel it doesnt show any more instances of 4.2.3 though.....

dmercer08 gravatar imagedmercer08 ( 2016-01-02 09:25:44 -0500 )edit

Well, how does the leftover kernel definition looks like? Are you able to post the rEFInd configuration, to which kernel does it point to? It is hard to advise without further information.

Could you provide output for ls -l /boot and relevant part of refind configuration with information regarding leftover kernel entry?

kukacek gravatar imagekukacek ( 2016-01-03 14:17:08 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2016-01-01 17:22:47 -0500

Seen: 1,234 times

Last updated: Jan 02 '16