RPM - runaway rpmq or rebuild rpm db

From Skytech
Jump to navigation Jump to search


Runaway rpmq process or need to rebuild rpm db

check if you have some runaway processed from rpmq (usually 100% cpu for a long time):

lsof | grep /var/lib/rpm/

Then kill them one by one.

Lastly, remove the __db* files and rebuild the db:

rm -f /var/lib/rpm/_db*
rpm --rebuilddb -vv

Done.