Execute the following commands in sequence:
rm -rf /var/lib/rpm/ __db .00* # If you are afraid of deletion, you can back up
rpm -vv - rebuilddb
yum clean all
yum makecache #When yum is installed, the installation package will be cached, but it is better to execute the yum makecache
command again and the execution may report an error, it does not matter
That’s all. hope this solution will help you.