LinuxHelps.com

A blog for Linux Lovers.

Posted by sibu on March 3, 2009

Fix a corrupt rpm database.

Symptoms : All rpm commands ‘hang up’

Find and kill all process running rpm or up2date:

ps -aux |grep rpm

ps -aux |grep up2date

Remove all rpm database lock files.

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

This usually get things doing..

If its not working  then first make a backup of the database:

cp -r /var/lib/rpm /var/lib/rpm.copy

then rebuild the database

rpm –rebuilddb

Add A Comment

Powered By Wordpress - Theme Provided By Wordpress Themes - Auto Loan Credit