Monday, January 31, 2022

[SOLVED] How to remove a newly installed kernel?

Issue

I just installed this kernel manually kernel-3.10.26. But I am not able to remove it as it's not getting listed with yum or rpm. How do I remove this kernel permanently??? I followed the following steps for installing this kernel:

  • Untarred the tar.bz2 file downloaded from kernel.org
  • added a value to EXTRAVERSION = in the Makefile
  • make gconfig (to create the .config file)
  • make -j4
  • make modules_install
  • make install
  • reboot

OS Platform is Scientific Linux 6.5. I can boot into this kernel but I want to remove it now. How do I do it ?


Solution

Delete *3.10.26* from /boot. This is what got installed. Delete /lib/modules/*3.10.36* as well. This is what got modules_installed. Run update-grub afterwards.

Note: before deleting, do an echo with the paths that I gave you to make sure they correspond to a single kernel and that is the kernel you want.



Answered By - Shahbaz
Answer Checked By - Terry (WPSolving Volunteer)