[Solved] yum Error: Error: rpmdb open failed

Error message:

Solution:

# Go to the directory where rpmdb is located
	cd /var/lib/rpm 
# Clear the original rpmdb file
	rm -f __db.* 
# Rebuild the rpm database
	rpm --rebuilddb 
# Clear yum's cache
	yum clean all 

Read More: