Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Mandriva Linux Help
Reload this Page Remove a hand-downloaded RPM
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Mandriva Linux Help For help and discussion about Mandriva (formally Mandrake) Linux.

Reply
 
Thread Tools Display Modes
Old 01-18-2006   #1 (permalink)
sabin
Linux Newbie
 
sabin's Avatar
 
Join Date: Apr 2005
Posts: 200
Question Remove a hand-downloaded RPM

Hello folks !

I have downloaded in my /home/ folder an RPM for my brand new Cherry keyboard, and installed it. But after second thought (I installed it despite a missing dependancy, and I don't want to allow mayhem possibility), now, I want to remove that RPM.

The trouble is that I don't know how to remove that rpm !

In the MCC's rpm/program uninstaller/management, the keyman rpm doesn't show anywhere o_O
Is there a way for me to remove that RPM from the folder where I have downloaded it ?

Last edited by sabin; 01-18-2006 at 09:36 PM. Reason: typo
sabin is offline   Reply With Quote
Old 01-18-2006   #2 (permalink)
GNOME_n00b
Linux Newbie
 
GNOME_n00b's Avatar
 
Join Date: May 2005
Location: UK
Posts: 142
try ordering by installation date as way of locating it - perhaps its installed by another name (although i can't think why). or you can go into command line and type 'rpm -e <package name>'
GNOME_n00b is offline   Reply With Quote
Old 01-19-2006   #3 (permalink)
spoon!
Linux Enthusiast
 
Join Date: Aug 2005
Location: Hell
Posts: 515
to find the name of the package try
Code:
rpm -qp --qf "%{NAME}\n" whatever.rpm
spoon! is offline   Reply With Quote
Old 01-19-2006   #4 (permalink)
bryansmith
Linux Guru
 
bryansmith's Avatar
 
Join Date: Nov 2004
Location: /Ontario/Canada
Posts: 2,616
A nice way to figure out what to put in for <package name> (GNOME_n00b's solution) is to use:
Code:
rpm -qa | grep <package>
For package, put the name of the rpm without the version number, architecture and .rpm. For example, if the name of the rpm was cherry_keyboard.1.2.1.i386.rpm, type:
Code:
rpm -qa | grep cherry_keyboard
With the result that you get, use that for the solution GNOME_n00b provided.

You will have to do GNOME_n00b's command as root.

Bryan
__________________
Looking for a distro? Look here.
"There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
Queen's University - Arts and Science 2008 (Sociology)
Registered Linux User #386147.
bryansmith is offline   Reply With Quote
Old 01-20-2006   #5 (permalink)
sabin
Linux Newbie
 
sabin's Avatar
 
Join Date: Apr 2005
Posts: 200
Thanks for the replies.

Using your solutions let me in perplexity, alas : it seems that RPM was not installed o_O

No way to remove that RPM.
During installation, it said there was a missing dependency (in fact the lib is installed, but the extension for that file is *.so.4 instead of *.so.16, or something like that, sigh), and I forced the installation. But yet it seems not to be installed.

For instance :

urpmi keyman-1.0.0-13.i586.rpm

(My Mandriva is in french, all english words are a free translation)

Some packages required cannot be installed : keyman-1.0.0-13.i586 , for libwnck-1.so.4 is not satisfied)
Continue ? (Y/n) y

urpme keyman-1.0.0-13.i586.rpm
Unknown package : keyman-1.0.0-13.i586.rpm

rpm -e keyman-1.0.0-13.i586.rpm
error : the package keyman-1.0.0-13.i586.rpm is not installed.



What would that mean ?
sabin is offline   Reply With Quote
Old 01-20-2006   #6 (permalink)
bryansmith
Linux Guru
 
bryansmith's Avatar
 
Join Date: Nov 2004
Location: /Ontario/Canada
Posts: 2,616
Don't do:
Code:
rpm -e keyman-1.0.0-13.i586.rpm
do
Code:
rpm -e keyman
If that doesn't work, what does
Code:
rpm -qa | grep keyman
give you?

Bryan
__________________
Looking for a distro? Look here.
"There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
Queen's University - Arts and Science 2008 (Sociology)
Registered Linux User #386147.
bryansmith is offline   Reply With Quote
Old 01-21-2006   #7 (permalink)
sabin
Linux Newbie
 
sabin's Avatar
 
Join Date: Apr 2005
Posts: 200
Thanks again

Alas, "rpm -qa | grep keyman" gave nothing at all.
While "rpm -e keyman" gave as a result "error, the package is not installed".

Sigh. As if it was not possible to force the installation, as if the package had not been installed finally.

Are there for linux some tools to "browse" an RPM file, and see its detailed internal information and its dependencies ? I tried opening the rpm file with kwrite but that produced mainly ascii soup with few file names here and there, not something really meaningful :/



Perhaps a solution would be to solve the bad dependancy problem ?
The rpm installer says every time that libwnck-1.so.4 is required, but that files is part of the libwnck library, which is already installed on my system, though with another name.
More precisely, I have libwnck-1_16 installed, that lib is described as "Window Navigator Construction Kit i.e. a library to use for writing pagers and taskslists and stuff", and its files are :
‎/usr/lib/libwnck-1.so.16
‎/usr/lib/libwnck-1.so.16.0.2
I also have ‎libwnck-1_16-devel, which among many other files includes :
/usr/lib/libwnck-1.a
‎/usr/lib/libwnck-1.la
‎/usr/lib/libwnck-1.so

Would you think it would be possible to "fool" the RPM for my keyman into accepting my version of libwnck ?
sabin is offline   Reply With Quote
Old 01-21-2006   #8 (permalink)
bryansmith
Linux Guru
 
bryansmith's Avatar
 
Join Date: Nov 2004
Location: /Ontario/Canada
Posts: 2,616
Are you sure it installed (keyman)? AFAIK (its been a while since I have used an RPM based distro), the RPM won't install if there is a missing dependency unless you force it (using a switch). This would explain why it did not come up when you queried for it.

Bryan
__________________
Looking for a distro? Look here.
"There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
Queen's University - Arts and Science 2008 (Sociology)
Registered Linux User #386147.
bryansmith is offline   Reply With Quote
Old 01-22-2006   #9 (permalink)
sabin
Linux Newbie
 
sabin's Avatar
 
Join Date: Apr 2005
Posts: 200
Well, In my console, I have had this :
Code:
Some packages required cannot be installed : keyman-1.0.0-13.i586 , for libwnck-1.so.4 is not satisfied)
Continue ? (Y/n) y
As you can see, I said "yes, continue, to hell with dependancies".
I also tried "urpmi" followed with keyman's name, with --force as a switch, same result.

Sigh, that means I won't have my keyboard's multimedia keys recognized
sabin is offline   Reply With Quote
Old 01-22-2006   #10 (permalink)
bryansmith
Linux Guru
 
bryansmith's Avatar
 
Join Date: Nov 2004
Location: /Ontario/Canada
Posts: 2,616
When I was researching your problem earlier, I came across some drivers on thier website. I can't seem to find them now but if you do, it may help solve your problem.

Bryan
__________________
Looking for a distro? Look here.
"There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
Queen's University - Arts and Science 2008 (Sociology)
Registered Linux User #386147.
bryansmith is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 03:03 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0