rpmdb: PANIC: fatal region error detected; run recovery
So to resolve the above issue Just do following things:
– Clean all yum cache
– Rebuild the rpm database
– Perform a fresh and clean yum update again
1. Clean all yum cache
This is easy just perform the following command :
yum clean all
rm -f /var/lib/rpm/__db*
That will get rid all the yum caches and refresh everything and of course deletes the rpm database package.
2. Rebuild the rpm database
Rebuild the rpm database packages again by executing:
It may takes some times for this process and once it done, you should get the command prompt back.
3. Perform a fresh and clean yum update again
And normal practice, perform the yum update again
yum update -y
And yum update will run the update again with a fresh rpm database package and updates it cache as well … and so yum lives happily ever after.
It Really Solves The Problem 😉