LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Delete kernel (https://www.linuxquestions.org/questions/linux-newbie-8/delete-kernel-38917/)

log 12-19-2002 08:48 PM

Delete kernel
 
I have redhat 8.0 and i have upgraded my kernel. Its all running fine but i donw want to waste my HDD space with the old kernel.

How do I get rid of the old kernel in the bootloader AND is it safe to delete the old kernel? and where is the kernel stored anyway?

yes, i know, i suck, but im slowly getting there :D

DavidPhillips 12-19-2002 10:33 PM

run this

Code:

  rpm -qa kernel
kernel-2.4.???
kernel-2.4.???

run this using the kernel you do not want to keep

Code:

rpm -e kernel-2.4.???
edit the file /etc/lilo.conf

remove the image section for the old kernel from the file


run lilo

Code:


lilo
boot = /dev/hda, map = /boot/map.0301
Added linux *


log 12-20-2002 01:46 AM

thanks for your help, that was easy :)

DavidPhillips 12-20-2002 03:04 AM

:cool:

so it worked, whew! never tried it before..

:D :D

just kidding!


you will want to make a new boot floppy now, the kernel modules for the original boot floppy are no longer on your system.



Code:

mkbootdisk `uname -r`


All times are GMT -5. The time now is 09:03 PM.