rpm卸载出错



rpm卸载出错。

#rpm -qa gpg-pubkey*
gpg-pubkey-e8562897-459f07a4
gpg-pubkey-e8562897-459f07a4
出现了两个一样的包
#rpm -e rpmgpg-pubkey-e8562897-459f07a4
error: gpg-pubkey-e8562897-459f07a4 specifies multiple packages
卸载时出错!
解决:
造成这个问题的主要原因是套件被重複 (强制) 安装了两次以上.尝试了–nodeps, –force, –justdb都不行。结果碰巧解决!通过man rpm,发现–allmatches应该可以解决这个问题.# rpm -e –allmatches –nodeps gpg-pubkey-e8562897-459f07a4