CentOS at Pacificrack.com: Fix Yum Hang with rpm and db files
I killed one yum process as it was doing an install, and my punishment was quick and severe: yum from that point forward just hang on most commands, doing nothing. After consulting a variety of internet sites and forums, etc, trying out their solutions, here's what I did that worked (thanks http://www.linux-archive.org/centos/33529-yum-hangs-when-reading-local-rpmdb.html):
cd /var/lib/rpm
rm *__* [3 db files]
rpm --rebuilddb
Testing:
yum list available
Wed, 06/03/2009 - 23:55 - peter
- peter's blog
- Add new comment
- 2258 reads

Delicious
Digg
StumbleUpon
Propeller
Reddit
Newsvine
Furl
Facebook
Google
Yahoo
Technorati
Icerocket