Advertisement
Home arrow Linux Guide arrow Fix corrupted RPM database on CentOS 5
Fix corrupted RPM database on CentOS 5
Written by wiredgorilla   
Wednesday, 28 October 2009

If rpm / yum command hangs during operations or you see error messages - it means your rpm database corrupted. /var/lib/rpm/ stores rpm database just delete the same and rebuild rpm database:

Command to rebuild rpm database

rm -f /var/lib/rpm/__db*
rpm --rebuilddb -v -v

 

Read rpm / yum man pages for more information





Reddit!Del.icio.us!Google!Live!Facebook!Slashdot!Netscape!Technorati!StumbleUpon!Newsvine!Furl!Yahoo!Ma.gnolia!Free social bookmarking plugins and extensions for Joomla! websites!
 
Next >