[root@dhcp yum.repos.d]# cd /var/lib/rpm/
[root@dhcp rpm]# rm __db.* -rf
[root@dhcp rpm]# rpm --rebuilddb
[root@dhcp rpm]# yum clean all
[root@dhcp yum.repos.d]# cd /var/lib/rpm/
[root@dhcp rpm]# rm __db.* -rf
[root@dhcp rpm]# rpm --rebuilddb
[root@dhcp rpm]# yum clean all
转载于:https://www.cnblogs.com/sysk/p/8125855.html