Repair rpm database on *nix

Filed Under (cPanel/WHM, DirectAdmin, InterWorx, Linux, Plesk) by WebScHoLaR on 24-02-2011

Tagged Under : , ,

1. Check for processes holding the rpm database open (usually in MUTEX/FUTEX states):

lsof | grep /var/lib/rpm

If it finds any, kill -9 them all.

2. Delete any temporary DB files:

rm -fv /var/lib/rpm/__*

3. Rebuild your RPM database:

rpm –rebuilddb -v -v

If you still have problems, a reboot is probably quickest, then repeat steps 2 and 3 above.

Proudly Hosted by eServicesProvider