On 1/13/08, Alfred von Campe alfred@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 ...