导入gpgkey的时候导入了两个同名的key,卸载的时候提示 specifies multiple packages。用--force提示说仅用于installation。。。
通过 rpm --help | grep remove ,发现 --allmatches 可以解决这个问题:
--allmatches
remove all packages which match <package> (normally an error is generated if <package> specified multiple packages)
rpm -e --allmatches packagename
转载于:https://blog.51cto.com/foolishfish/1434839