Ask Your Question

remove kernel installed from source

asked 2016-06-30 00:58:09 -0600

sumaka gravatar image

I installed some kernels from source and then without uninstalling I deleted the source files. Now I can't remove those entries from my grub menu. I can remove them using grubby, but if I do grub2-mkconfig they come back. DNF cannot detect those kernels, so dnf remove doesn't work too.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2016-07-01 04:50:18 -0600

It should be sufficient to remove all related files in /boot and in /lib/modules. grub2-mkconfig should be executed afterwards to generate the new grub configuration based on the files in ´/boot`.

edit flag offensive delete link more


would it be safe to delete directly from /boot folder?

sumaka gravatar imagesumaka ( 2016-07-01 06:13:03 -0600 )edit

Yes, you have to rm /boot/*<kernel-version-to-remove>* as the kernel files and maybe initrds were not placed by RPM but rather by a script which just copied those files there. If you are unsure, it also might be a good idea to run yum reinstall $(rpm -qa kernel*) after you cleaned up your /boot directory. This should reinstall the kernels managed by Fedora.

thomaswood gravatar imagethomaswood ( 2016-07-02 06:33:35 -0600 )edit

Question Tools


Asked: 2016-06-30 00:58:09 -0600

Seen: 297 times

Last updated: Jul 01 '16