PDA

View Full Version : Yum database broken



YellowWeasel
12th February 2007, 11:31 PM
I got a yum segfault. A then did yum clean all and rpm --rebuilddb. I tried yum again and it fails, because the urls it accesses have null where it used to say 5. rpm -qa only lists a single entry. What should I do now?

sideways
12th February 2007, 11:58 PM
try rebuilding from scratch



su -
rm -f /var/lib/rpm/__db.*
rpm --rebuilddb
yum clean all (also recreates the __db.* files)

YellowWeasel
13th February 2007, 07:18 PM
I tried that. It still does the same thing.

UPDATE: I was able to get the full package list from /var/log/rpmpkgs.1. How can I transfer this list to the database that rpm -qa and yum list installed show me? :confused: