rpmdb crashed, how to repair? [FC3]

Andy Green andy at warmcat.com
Sun Feb 5 09:53:30 UTC 2006


Jim Cornette wrote:

> There was a script out there that someone made that made a file in the
> /tmp directory, then compared the uniq version and outputted the version

I was the someone.  The script is available at

http://warmcat.com/listrpmdupes

(Use Rightclick | Save As... )

but note it will not work right on x86_64, since duplicated packages
differing only by arch are normal there.

What it does is not only list duped packages but specifically lists the
ones it thinks can be deleted.  So if you have blah-1.00 and blah-1.01
installed, the script will only output blah-1.00, which can be fed
directly to rpm -e.  If only one version of blah is installed it outputs
nothing about blah.  On a happy machine it won't output anything at all.

I used it several times with success, but it does no harm to review its
output and convince yourself it makes sense considering rpm -qa before
feeding it to rpm -e :-)

-Andy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4492 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060205/7091fa8f/attachment-0001.bin>


More information about the fedora-list mailing list