Portal Home > Knowledgebase > Articles Database > cant remove package via yum - centos - howto manually remove files and rebuild rpm db


cant remove package via yum - centos - howto manually remove files and rebuild rpm db




Posted by o-dog, 03-10-2011, 05:26 PM
Hi I am trying to remove a package on my CentOS 5.5 box via yum remove 'package' but it fails. Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction /var/tmp/rpm-tmp.3792: line 4: syntax error near unexpected token `fi' /var/tmp/rpm-tmp.3792: line 4: `fi' Removed: xl2tpd.i386 0:1.2.7-1.el5 But if i list all the files, it is still there Is there any way I can manually remove files and rebuild rpm db to remove this package reference? I cant delete the files only, i need to remove every trace from the system so it can be reinstalled properly. Thanks, Chris

Posted by o-dog, 03-10-2011, 05:29 PM
ok i think i did this, i just did: rmp -e --noscripts {package} and delted the files manually, it seems to have killed it off Was this the right way of doing it?

Posted by LVPSHosting, 03-11-2011, 03:39 AM
Try: rm -rf /var/lib/rpm/__db.00* rpm --rebuilddb and after that try to remove the package again.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
hostnetway (Views: 821)


Language:

LoadingRetrieving latest tweet...

Back to Top Copyright © 2018 DC International LLC. - All Rights Reserved.