We’ve had a few users report that yum is frozen on their VPS’s. Usually ones running cPanel and I figured it was worth a quick post about how to solve it. The problem is usually the rpm database has become corrupt. It’s quite easy to fix all you need to do is run a few commands and it should hopefully fix everything up.
lsof | grep /var/lib/rpm
This will give you a list of processes that you need to kill. Kill each with the following command:
kill -9 processid
Replacing processid with the id of the process on the list
rm -fv /var/lib/rpm/__*
rpm –rebuilddb -v -v
It’s that easy and now everything should work properly again. I hope this helps some people out with issues with yum or rpm.
Leave a reply