Red Hat Bugzilla – Bug 40651
rpm won't remove old kernel after upgrade
Last modified: 2007-04-18 12:33:14 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.19-6.2.1 i686)
Description of problem:
I used rpm-4.0.2-6x to upgrade my RedHat 6.0 plus most upgrades to 6.2 from
kernel-2.2.5-22 to kernel-2.2.19-6.2.1. After booting the new kernel I
tried to use "rpm -e kernel-2.2.5" (and got the message "kernel-2.2.5 not
installed" and "rpm -e kernel-2.2.5-22" (and got the message
"kernel-2.2.5-22 not installed") and "rpm -e --test kernel" (and got the
message "kernel specifies multiple packages"). I can delete all the files
of kernel-2.2.5-22 by hand, but how would I then convince rpm that
kernel-2.2.5-22 was no longer installed?
Steps to Reproduce:
1.Just give the rpm command to attempt to remove the old kernel.
All better now! I gave the command
after which the command
rpm -e kernel-2.2.5
removed the old kernel.