[CentOS] Safe method to remove old kernels

Chris Mauritz chrism at imntv.com
Fri Oct 12 13:35:04 UTC 2007

Scott Moseman wrote:
> # rpm -qa | grep kernel-2 | sort
> kernel-2.6.9-42.0.10.EL
> kernel-2.6.9-42.0.2.EL
> kernel-2.6.9-42.0.3.EL
> kernel-2.6.9-42.0.8.EL
> kernel-2.6.9-42.EL
> kernel-2.6.9-55.0.2.EL
> kernel-2.6.9-55.0.6.EL
> kernel-2.6.9-55.0.9.EL
> kernel-2.6.9-55.EL
> I'm running the most recent kernel available, and I've never had a
> problem with any past kernels, so I don't believe there's any reason
> to keep all of them.  I guess kernels get a fresh install instead of
> an upgrade?  Can I safely rpm-e the old kernel packages?  Should this
> be something I do through yum instead?

I'm not really sure of the correct method, but I've gotten into the 
habit of using rpm -e.  I usually keep the current kernel plus the 
previous one and dump the rest.


More information about the CentOS mailing list