Howto get rid of old kernels

Jay Daniels drs at pointyhats.com
Tue May 4 14:41:08 UTC 2004


On Mon, May 03, 2004 at 01:55:54PM -0400, John Nichel wrote:
> John Fleming wrote:
> >How do I get rid of old kernels and their listing in the graphical boot
> >screen?  They were all installed using yum or up2date, so I assume I can
> >remove them with either of those.  Will that remove them from the boot
> >screen too?  Tnx - John
> >
> >
> 
> rpm -qa | grep kernel
> 
> Will show you the kernel's that you currently have installed, then you 
> can....
> 
> rpm -e kernel-2.x.x.....
> 
> for all the ones you want to get rid of.  This will also delete their 
> entry from grub.

Word of warning, don't rpm -e an old kernel until you have rebooted
and tested the new kernel and make sure the new kernel works!


jay





More information about the users mailing list