LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-28-2004, 07:44 PM   #1
kamdh
LQ Newbie
 
Registered: Jan 2003
Posts: 18

Rep: Reputation: 0
Question multiple installs of same package in RPM database


System: Fedora Core 1, with upgraded packages

I installed Quake 2 with the --force command (accidentally installing it multiple times), because I wouldn't need the required libs... bad idea, but anyway, now I can't remove the package since there are multiple installs of the same Quake 2 rpm. I tried a rpm query:

[kam@charon kam]$ rpm -q quake2
quake2-3.20-glibc-6
quake2-3.20-glibc-6
quake2-3.20-glibc-6

So, I tried:

[kam@charon games]$ sudo rpm -e --allmatches quake2
[kam@charon games]$ sudo rpm -q quake2
quake2-3.20-glibc-6
quake2-3.20-glibc-6
quake2-3.20-glibc-6

The "rpm -e" command never returns anything. Now, the problem with this is, I can't use apt-get to install anything new. I tried manually deleting /usr/local/games/quake2, and the same errors occur without the directory in place. Is there any way to remove the entries from the rpm database (since all of the actual files are gone) so apt-get will work?

Thank you.
 
Old 04-29-2004, 09:04 AM   #2
jon-do
Member
 
Registered: Feb 2004
Distribution: Red 9, FC 2 Test 3
Posts: 98

Rep: Reputation: 16
No sure if it will make any difference but, try
#rpm -e --nodeps --allmatches quake2
 
Old 04-29-2004, 03:28 PM   #3
kamdh
LQ Newbie
 
Registered: Jan 2003
Posts: 18

Original Poster
Rep: Reputation: 0
No, the same thing happened.
 
Old 04-29-2004, 03:30 PM   #4
kamdh
LQ Newbie
 
Registered: Jan 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Is there any way to just get rpm to think the packages aren't there, ie. remove the packages' database entries manually? I looked at /var/lib/rpm/Packages but it looked binary.
 
Old 04-29-2004, 04:56 PM   #5
jon-do
Member
 
Registered: Feb 2004
Distribution: Red 9, FC 2 Test 3
Posts: 98

Rep: Reputation: 16
one last thing to try
#rpm -e --nodeps --allmatches quake2-3.20-glibc-6

If that doesn't work then, I have to idea

I am not sure if you can use synaptic to remove it. If you have it already try it, if not grap one from a Fedora Core 1 repository and install it through rpm and give it a shot

Last edited by jon-do; 04-29-2004 at 04:59 PM.
 
Old 04-29-2004, 05:38 PM   #6
kamdh
LQ Newbie
 
Registered: Jan 2003
Posts: 18

Original Poster
Rep: Reputation: 0
[kam@charon kam]$ rpm -e --nodeps --allmatches quake2-3.20-glibc6
error: package quake2-3.20-glibc6 is not installed
[kam@charon kam]$ rpm -e --nodeps --allmatches quake2-3.20
error: package quake2-3.20 is not installed

Rpm doesn't seem to recognize the full package name, but when the command is issued on 'quake2' alone, it never gives any error.

Synaptic also returns an error when I try to delete the broken package. However, I just noticed an 'expert' tab where you can select a specific version. But when I click on the '3.20-glibc-6' option, the window flashes and the 'not installed' option becomes checked. Upon further investigation, when the package is viewed before 'remove' is clicked, the correct version is selected, but once 'remove' is clicked, it changes to 'not installed'. Maybe synaptic doesn't like trying to remove multiple versions or something....

Thank you, jon-do, and any additional help would be appreciated.
 
Old 04-29-2004, 05:48 PM   #7
kamdh
LQ Newbie
 
Registered: Jan 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Okay, I tried this thinking it might work... I added the following to my apt.conf in the RPM section:

Ignore { "^quake2$" };

It doesn't seem to do anything. Is there someplace in apt's configuration where I could get it to ignore Quake?
 
Old 04-29-2004, 05:56 PM   #8
kamdh
LQ Newbie
 
Registered: Jan 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Maybe this will help too...

[kam@charon examples]$ sudo rpm -e --allmatches -vv quake2
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Name rdonly mode=0x0
D: read h# 500 Header sanity check: OK
D: read h# 674 Header sanity check: OK
D: read h# 687 Header sanity check: OK
D: ========== --- quake2-3.20-glibc-6 i386-Linux 0x0
D: opening db index /var/lib/rpm/Requirename rdonly mode=0x0
D: ========== --- quake2-3.20-glibc-6 i386-Linux 0x0
D: ========== --- quake2-3.20-glibc-6 i386-Linux 0x0
D: closed db index /var/lib/rpm/Requirename
D: closed db index /var/lib/rpm/Name
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages create mode=0x42
D: mounted filesystems:
D: i dev bsize bavail iavail mount point
D: 0 0x0306 4096 490082 569042 /
D: 1 0x0002 1024 0 -1 /proc
D: 2 0x0006 1024 0 -1 /dev/pts
D: 3 0x0007 1024 0 -1 /proc/bus/usb
D: 4 0x0303 1024 43259 14017 /boot
D: 5 0x0009 4096 31823 31822 /dev/shm
D: 6 0x0302 8192 10085 -1 /mnt/win
D: 7 0x0009 4096 31823 31822 /dev/shm
D: 8 0x000a 4096 0 -1 /proc/sys/fs/binfmt_misc
D: sanity checking 3 elements
D: computing 282 file fingerprints
D: computing file dispositions
D: opening db index /var/lib/rpm/Basenames create mode=0x42
D: ========== --- quake2-3.20-glibc-6 i386-Linux 0x0
D: erase: quake2-3.20-glibc-6 has 94 files, test = 0
D: opening db index /var/lib/rpm/Name create mode=0x42
D: read h# 687 Header sanity check: OK
D: ========== --- quake2-3.20-glibc-6 i386-Linux 0x0
D: erase: quake2-3.20-glibc-6 has 94 files, test = 0
D: read h# 674 Header sanity check: OK
D: ========== --- quake2-3.20-glibc-6 i386-Linux 0x0
D: erase: quake2-3.20-glibc-6 has 94 files, test = 0
D: read h# 500 Header sanity check: OK
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Name
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages

It seems like rpm is doing something...
 
Old 04-29-2004, 05:59 PM   #9
kamdh
LQ Newbie
 
Registered: Jan 2003
Posts: 18

Original Poster
Rep: Reputation: 0
sudo rpm -e -vv --allmatches --nodeps --noscripts --notriggers quake2

Got it! I decided to just set every option rpm's man page said was possible for erasing, and sure enough, it worked. Thank you man!
 
Old 05-15-2009, 02:00 PM   #10
Ehtetur
Member
 
Registered: Mar 2008
Location: Denver, CO
Distribution: Red Hat Enterprise Linux
Posts: 52

Rep: Reputation: 16
Smile

I had issues removing a badly installed rpm and this fixed my problem...

Pretty cool that a fix posted in 2004 is still valid 5 years later

Last edited by Ehtetur; 05-15-2009 at 02:03 PM.
 
Old 10-15-2015, 08:18 AM   #11
s1rc0
LQ Newbie
 
Registered: Oct 2015
Posts: 1

Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by Ehtetur View Post
I had issues removing a badly installed rpm and this fixed my problem...

Pretty cool that a fix posted in 2004 is still valid 5 years later
is still valid 11 years later
 
  


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
Possible to relocate RPM package to multiple directories bytaking dir input fromuser chalasaniv Linux - Software 0 10-08-2004 05:52 AM
RPM Question concerning multiple installs {-_-} Linux - Software 3 09-10-2004 08:59 AM
Remove package from RPM database? breddy Linux - Newbie 1 07-21-2004 11:51 PM
How to rebuild rpm database to include source installs abrb220 Linux - Software 3 03-18-2004 09:35 AM
package installs... mathfeel Fedora 4 12-01-2003 05:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:05 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