Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 01-26-2009, 04:06 PM   #1
LQ Newbie
Registered: May 2006
Posts: 18

Rep: Reputation: 0
force RPM to remove package

Hi all,

Ok, in short I just need to find out how to remove a dbvis package as it causing yum to break. I have googled and searched the forums. I found this I modified the python script that yum uses to find the offending package.

This is the symptoms when i run yum...

[root@localhost ~]# yum -d 10 list
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/", line 229, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/", line 104, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/", line 343, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/", line 240, in doCommand
    ypl = base.returnPkgLists(extcmds)
  File "/usr/share/yum-cli/", line 680, in returnPkgLists
  File "/usr/lib/python2.5/site-packages/yum/", line 1439, in doPackageLists
  File "/usr/lib/python2.5/site-packages/yum/", line 297, in returnPackages
    self._makePackageObject(hdr, idx)
  File "/usr/lib/python2.5/site-packages/yum/", line 430, in _makePackageObject
    po = RPMInstalledPackage(hdr, index, self)
  File "/usr/lib/python2.5/site-packages/yum/", line 37, in __init__
    YumInstalledPackage.__init__(self, rpmhdr)
  File "/usr/lib/python2.5/site-packages/yum/", line 1205, in __init__
    YumHeaderPackage.__init__(self, fakerepo, hdr)
  File "/usr/lib/python2.5/site-packages/yum/", line 981, in __init__
    self.summary = misc.share_data(self.hdr['summary'].replace('\n', ''))
AttributeError: 'list' object has no attribute 'replace' 
Here is the output to confirm that dbvis if the offending binary...

[root@localhost DbVisualizer-6.5]# yum -d 10 list
"blacklist" plugin is disabled
Loading "refresh-packagekit" plugin
"whiteout" plugin is disabled
Loaded plugins: refresh-packagekit
Config time: 0.737
Yum Version: 3.2.20
COMMAND: yum -d 10 list 
Installroot: /
Setting up Package Sacks
pkgsack time: 0.094
Reading Local RPMDB
rpmdb time: 0.000
Here is the error with replace
name =  dbvis
So, this confims this bug //

I have tried rebuilding the RPM database and also deleting the /var/lib/rpm/__db* files then rebuilding the rpm, but yum is still broken.

So, by removing the offending yum should start working, but I get a seg fault when i attemp to remove it.

[root@localhost rpm]# rpm -e dbvis-6.5-1.i386
Freeing locks for locker 0xba: 20369/3087836944
Freeing locks for locker 0xbb: 20369/3087836944
Freeing locks for locker 0xbc: 20369/3087836944
Freeing locks for locker 0xbd: 20369/3087836944
Freeing locks for locker 0xbe: 20369/3087836944
Segmentation fault
Could anyone assist in getting rid of this binary. Other usefull information:

[root@localhost rpm]# rpm -qa| grep rpm
[root@localhost rpm]# rpm -qa| grep yum

[root@localhost rpm]# cat /etc/redhat-release 
Fedora release 10 (Cambridge)
Thanks geo.
Old 02-01-2009, 05:58 PM   #2
Registered: Mar 2008
Location: Washington State, US
Distribution: OPENSuse 11.1
Posts: 35

Rep: Reputation: 17
I can only offer this: have you tried using the --force option with rpm -e..?
rpm -e dbvis-6.5-1.i386 --force

you could also try manually removing the files from the rpm (BUT I bet that'd break it, since I'm assuming it wouldn't get rid of the record of having it) you can download the rpm, and look at what files it has, and then go manually delete each one. *ahem* but I wouldn't recommend doing that since I have no idea of it's effect.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to rpm remove all package sunhui Linux - Software 2 01-21-2007 11:55 AM
How to remove an RPM package? sirius57 Fedora 4 11-30-2005 08:07 PM
How do you uninstall/remove an rpm package? Plz Help! Gormless Linux - Newbie 3 10-23-2004 03:25 PM
Remove package from RPM database? breddy Linux - Newbie 1 07-21-2004 11:51 PM
Can't remove RPM package xxxxxxxxx Linux - Newbie 8 05-07-2004 03:24 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:29 PM.

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