LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-26-2002, 10:52 PM   #1
kobe
Member
 
Registered: Jun 2002
Location: Australia
Distribution: RH 7.3 & Debian (Woody)
Posts: 30

Rep: Reputation: 15
installed wrong RPM


I accidently installed a rpm the other day that was for a i586 arch, but my arch is i386, how on earth do i get rid of this package now? i have tried "rpm -e" and even resorted to the KDE and gnome guis to find and remove this package! But neither can find the packages!!

any ideas?

also what happens when u install the wrong packages for ur system ?? (like i did!)

stupid
 
Old 09-26-2002, 11:21 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Re: installed wrong RPM

Quote:
Originally posted by kobe
I accidently installed a rpm the other day that was for a i586 arch, but my arch is i386, how on earth do i get rid of this package now? i have tried "rpm -e" and even resorted to the KDE and gnome guis to find and remove this package! But neither can find the packages!!

any ideas?

also what happens when u install the wrong packages for ur system ?? (like i did!)

stupid :mad:
Gidday...

man rpm is a good start,
rpm -e <package name> is the next step ...

Cheers,
Tink

An as a rule of thumb: read, search, ask :}
 
Old 09-27-2002, 12:18 AM   #3
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
if the package is

anypackage-2.4.01.rpm

rpm -e anypackage
 
Old 09-27-2002, 12:21 AM   #4
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
to see the package use...

rpm -qa | grep anypackage

to send all packages to a file...

rpm -qa > myrpms

open in your favorite program or ...

cat myrpms | less
 
Old 09-27-2002, 02:50 AM   #5
kobe
Member
 
Registered: Jun 2002
Location: Australia
Distribution: RH 7.3 & Debian (Woody)
Posts: 30

Original Poster
Rep: Reputation: 15
.

Last edited by kobe; 09-27-2002 at 12:20 PM.
 
Old 09-27-2002, 03:06 AM   #6
mayankjohri
Member
 
Registered: Mar 2002
Location: INDIA
Distribution: Mandrake Linux 9.2, Knoppix 3.0
Posts: 158

Rep: Reputation: 30
I might help you.
My try for it. (Few methods)
1. Why don't you force uninstall the package
2. Try removing the package from the rpm database but before that get the list of all files installed by that rpm. and then remove the files manually


Mayank Johri
INDIA
 
Old 09-27-2002, 03:51 AM   #7
kobe
Member
 
Registered: Jun 2002
Location: Australia
Distribution: RH 7.3 & Debian (Woody)
Posts: 30

Original Poster
Rep: Reputation: 15
Nah u cant force a RPM to uninstall.

"rpm: only installation, upgrading, rmsource and rmspec may be forced"
 
Old 09-27-2002, 04:43 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
If you take the time to read it then you WILL find all the answers to your questions in the rpm manpage, and you CAN remove it with rpm -e. Now, you said it "didn't work" you don't bother to say exactly what rpm says.... i'm guessing you simply don't know what the package name is, and to find out.. well you'd read the rom man page and do soemthing like

rpm -qa | grep partialpackagename

and that'll tell you the EXACT package name for any installed RPMs containing that part of the name, as david said.

but then of course... you're seriously only using a 386 computer??? i presume you know that pentium = 586 architecture.

it might always be that you're rpm database is corrupted somehow, maybe you'll need to rebuild it.

and be a bit more grateful please, all questions are answered in good faith, and quite what
Quote:
PS. I dont GIVE a flying *$#@ what distro u use or what u think of the distro I use!! I do not pay out ur distro, hence i expect the same respect towards myself and the software i choose to use.
is meant to mean, i doubt anyone has a clue.
 
Old 09-27-2002, 07:44 AM   #9
kobe
Member
 
Registered: Jun 2002
Location: Australia
Distribution: RH 7.3 & Debian (Woody)
Posts: 30

Original Poster
Rep: Reputation: 15
ok,

My main point of concern was the first response (which i should have made clear). I clearly pointed out that i had obviously tried a few avenues ie rpm -e and i had looked at the man pages to the extent of my knowledge and skill. It appears ppl have not taken the time to read my post but merely the heading.

I seriously understand the gripes ppl have with ppl posting msgs b4 trying things out like searching and man pages. My point here is if u are going to reply pls make it applicable to the question.
 
Old 09-27-2002, 08:05 AM   #10
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
I just have a few things to add...

I really can understand the frustration from having something not go right, especially when it's your own fault. Getting upset will only compound your problem, and make other's not want to help you as eagerly. Tinkster may have skimmed over your thread, and happen to miss the portion where you say you tried rpm -e. No worries there, a simple "Yeah, like I said I tried that, but thanks for the effort" would have been a little better.

And the newb answers/responses are there because it's power of deduction. Not many people here know each other levels of experience/expertise using whatever they are using, so starting simpliest and moving forward is a decent approach sometimes. It works more than 50% of the time I'd guess. Very recently, there was a thread about running a program. Loads of great answers, massively thought of up answers. In the end, it appeared (as seen by Acid ) that it was as simple as ./programname . Sometimes it's the basics that kills us, therefore people are just starting there and moving out....

Ok, now on topic a bit:
The rebuilding your database sounds like a logical step. Did you try ldconfig and updatedb after you installed the package to see if that helped any? I believe architecture is all the same for the 386-686 packages, it's just optimization involved. I don't think it would have a majorly detrimental effect unless it's a system critical package. If it was something like Opera, then it's no biggie I'd think.

Another thought, maybe you could -Uvh with the correct package, and that'd clear things up? Worth a try anyway.

Good luck, and don't let things get you down so bad buddy, everyone is here just to help.



cool
 
Old 09-27-2002, 08:39 AM   #11
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
Well, it's not only optimization. 586 processors use more instructions that 386s, usually you can't run a program compiled for 586 on 386... The "extra" instructions are illegal for the older machine.
But, kobe, if you're using 586 machine, but just have the whole system from 386 packages, it will still work. But if you're using 386 or 486 machine, it's a good idea to remove th package, because it just won't work.
Kobe, any progress?
 
Old 09-27-2002, 08:48 AM   #12
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Quote:
Originally posted by Mara
Well, it's not only optimization. 586 processors use more instructions that 386s, usually you can't run a program compiled for 586 on 386... The "extra" instructions are illegal for the older machine.
Hey Thanks Mara, for the info. I had no idea.

Cool
 
Old 09-27-2002, 12:16 PM   #13
kobe
Member
 
Registered: Jun 2002
Location: Australia
Distribution: RH 7.3 & Debian (Woody)
Posts: 30

Original Poster
Rep: Reputation: 15
MasterC,

Good point....i apologize for any heart ache i have caused, and am glad someone has aknowledged my point.

Have not had a chance to do anything right now, due to more pressing issues but when solved will update!
 
Old 09-27-2002, 07:27 PM   #14
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
So a short tip from me. Try
rpm -e package --nodeps
it's like --force, but for uninstallation.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm -ivh says installed rpm -e says not installed ??? skog Fedora 3 12-22-2004 04:52 PM
RPM is saying installed packages aren't installed ticky87 Linux - Newbie 4 07-26-2004 02:17 AM
installed wrong version of up2date RPM -- did I screw things up? killjoyce Linux - Newbie 1 10-16-2003 02:41 PM
Installed the wrong Wine! Kristic Linux - Newbie 3 09-03-2003 07:46 PM
Installed wrong monitor SherylGlas Linux - Newbie 3 02-19-2003 09:59 PM


All times are GMT -5. The time now is 01:10 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration