cd /var/lib/rpm # rpmdb所在目录
rm -f __db.* # 清除原rpmdb文件
rpm --rebuilddb # 重建rpm数据库
yum clean all # 清除所有yum的缓存

发表评论