DNF Update: DB_RUNRECOVERY Fatal error, run database recovery

YUM and DNF updates are sensitive to interruption. Meaning, that when interrupted, there is a strong change that the database will become corrupted and the next yum attempt will result with a DB_RUNRECOVERY Fatal error. As scary as that may appear, it resolution is simple. Sensitive as it may be, it is quite resilient.

$ mv /var/lib/rpm/__db* /tmp/
$ rpm --rebuilddb
$ yum clean all

Source(s)

  • https://ma.ttias.be/yum-update-db_runrecovery-fatal-error-run-database-recovery/