forked from Controls/gitea-pages
370 B
370 B
Repair the RPM DB
Introduction
Sometimes the rpm database gets broken and any command of manipulating or questioning RPMS might fail.
So, it can be necessary to remove the corrupted RPM database and to reinitialize it.
Procedure
Run:
# cd /var/lib/rpm
# rm -f __db.*
# rpmdb --initdb
# rpmdb --rebuilddb