LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2006, 09:55 PM   #1
lyar1031
Member
 
Registered: Jul 2004
Posts: 54

Rep: Reputation: 15
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
 
Old 01-26-2006, 11:20 PM   #2
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
hi,
the correct command is
rpm -e kernel-2.4.20-28.9
 
Old 01-26-2006, 11:21 PM   #3
lyar1031
Member
 
Registered: Jul 2004
Posts: 54

Original Poster
Rep: Reputation: 15
Ya I tried that to, but same error!!

Thanks
 
Old 01-27-2006, 08:04 AM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remove RPM TuxFreak Linux - Newbie 6 01-16-2005 01:04 PM
remove rpm invisibleghost Linux - Newbie 5 09-04-2004 09:42 PM
remove rpm ust Linux - Software 2 08-13-2004 02:58 AM
Cannot remove RPM drwsc6 Fedora - Installation 1 04-03-2004 05:27 AM
remove rpm vnpcg Linux - Software 9 02-23-2003 11:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration