RPM - runaway rpmq or rebuild rpm db

From Skytech
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


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.