error : rpmdb open failed

Hi, i cannot remove a pacakge i got some rpmdb error, how to resolve it? please refer the below snap


yum error snap

Tags: CentOS YUM Command RPM
user image Author :   victorsamuel

Try executing the following commands solve this rpmdb error

mkdir /var/lib/rpm/backup
cp -a /var/lib/rpm/_db* /var/lib/rpm/backup/
rm -f /var/lib/rpm/_db.[0-9][0-9]*
rpm --quiet -qa
rpm --rebuilddb
yum clean all
user image
parthiban March 28, 2018
Add comment