Fix corrupt RPM database on CentOS

Sometimes, e.g. when your partition gets full during update or other server hangs during update your RPM database might get corrupted and updates with yum won’t work without any indications – process will just hang in the air… If that happens – your RPM database is corrupt. Just 2 simple steps and you’re back on track.

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

Now you can use yum to update and install packages on your CentOS!

Facebooktwittergoogle_plusredditpinterestlinkedinmail

Leave a Reply

Your email address will not be published. Required fields are marked *

*

code