yum – Fixing Corrupt DB

If yum hangs you may have a corrupt DB. Try this.

[root@localhost rpm]# cd /var/lib/rpm
[root@localhost rpm]# rm -f __db*
[root@localhost rpm]# rpm -rebuilddb
[root@localhost rpm]# yum clean all

Example is based on Redhat paths.

Related posts:

  1. Using Subdomains With Localhost
  2. Upgrading Logwatch on CentOS 5
  3. Scheduling Linux Apps
0 Comment   |   Posted in System Administration,applications,blog by lcleveland on March 15, 2009