<< MRTG
3
Mar 2009
Fix a corrupt rpm database.
Posted in Linux Administration by sibu at 2:39 pm |
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
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.