[CentOS] LIMITING NUMBER OF KERNEL VERSIONS RETAINED

Sun Jan 13 17:47:58 UTC 2008
Bart Schaefer <barton.schaefer at gmail.com>

On 1/13/08, Alfred von Campe <alfred at von-campe.com> wrote:
> What you want is:
>
>    # yum instal yum-utils
>
> followed by:
>
>    # package-cleanup --oldkernels [--count=x]
>
> where x defaults to "2" (i.e., keep two older kernels).

I recently discovered that if you have both the uniprocessor and SMP
kernel packages installed, which I believe is the default behavior,
then package-cleanup won't remove the SMP packages.  I had to rpm -e
those myself.

Maybe there's some other reason that it missed those ...