LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   remove rpm (https://www.linuxquestions.org/questions/linux-newbie-8/remove-rpm-408438/)

lyar1031 01-26-2006 09:55 PM

remove rpm
 
OK when I do

rpm -qa | grep kernel

I get the following.

kernel-pcmcia-cs-3.1.31-13
kernel-2.4.20-8
kernel-2.4.20-28.9
kernel-source-2.4.20-8

However, I want to remove "kernal-2.4.20-28.9" from the list by typing
rpm -e kernel-2.4.20-28.9.rpm

I get the follwoing error!!
error: package kernel-2.4.20-28.9.i386 is not installed

How do I remove this rpm from the list

Thanks

paragn 01-26-2006 11:20 PM

hi,
the correct command is
rpm -e kernel-2.4.20-28.9

lyar1031 01-26-2006 11:21 PM

Ya I tried that to, but same error!!

Thanks

marozsas 01-27-2006 08:04 AM

rebuild the rpm's databse first:
# rpm --rebuilddb

and them, verify the kernel you want to remove still there. If is, them try to remove it now.


All times are GMT -5. The time now is 10:42 PM.