LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   delete old kernels (https://www.linuxquestions.org/questions/linux-software-2/delete-old-kernels-276426/)

lumbrjackedpcj 01-11-2005 03:00 AM

delete old kernels
 
im new to recompiling the kernel so for practice i made a couple of them. now my question is how do i delete all the practice kernels that i compiled? is it also safe just to delete the source for the kernels to and how do i delete them completely? Im not using the source or the kernels themselves anymore.

Thanks,
Paul

/bin/bash 01-11-2005 05:16 AM

ver=2.6.9
rm -fr /usr/src/linux-$ver
rm -fr /lib/modules/$ver
rm -f /boot/vmlinuz-$ver
rm -f /boot/initrd-$ver
rm -f /boot/System.map-$ver
rm -f /boot/config-$ver

Also edit /etc/lilo.conf and remove any entries there. And rerun lilo.


All times are GMT -5. The time now is 09:25 AM.