导入gpgkey的时候导入了两个同名的key,卸载的时候提示 specifies multiple packages。用--force提示说仅用于installation。。。

wKiom1O3s2iRtqXxAACYDn-C9Q0465.jpg

    通过 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