修复RPMDB错误

来自YTYZX有图有真相的百科
跳转至: 导航搜索
1.在使用YUM安装时提示“Warning: RPMDB altered outside of yum.”。

RPMDBaltered1.png

2.故障原因为直接使用rpm安装时有可能导致此问题。
  备注:本例中因为直接使用rpm命令安装Mysql导致此问题。

RPMDBaltered2.png

3.输入“yum history sync”同步即可排除此故障。

RPMDBaltered4.png

4.亦可输入“rm -rf /var/lib/yum/history/*.sqlite”清除YUM历史记录。

RPMDBaltered3.png