Fix error ‘rpmdb: PANIC: fatal region error detected’ when use yum on CentOS/RHEL

13

You are using CentOS/RHEL OS and perform some action with ‘yum’ to install package through repository. Then you encounter this kind error ‘rpmdb: PANIC: fatal region error detected; run recovery’ :

How to fix errror ‘rpmdb: PANIC: fatal region error detected’ on CentOS/RHEL

This is messed case, but you can follow the way to fix it by cleaning out RPM DB and rebuild it. First of all, you need to backup some files in directory ‘/var/lib/rpm’.

 
Remove current files and rebuild rpm db.

 
Finally, we need to verify the status of fixing.

 
Ok, so that all the steps you need to do for fixing the error ‘rpmdb: PANIC: fatal region error detected’.

LEAVE A REPLY