rpm卸载时遇到"xxx specifies multiple packages"的问题

先前在 CentOS 5.7 VM上安装了64位的 valgrind, 然后在没有卸载它的情况下安装32位的 valgrind,没有提示安装失败。这时用 "rpm -q valgrind" 可以查到安装了两个 valgrind,但版本完全一致。运行 valgrind 时发现,运行的实际上是64位的。

于是要将其卸载,用 "rpm -e valgrind" 提示 "valgrind"关键字对应多个版本 (valgrind specifies multiple packages),卸载失败。用 "rpm -e --allmatches valgrind" 提示

error: Failed dependencies:
        valgrind = 1:3.5.0-5.el5 is needed by (installed) valgrind-devel-3.5.0-5.el5.x86_64

于是,先用 "rpm -e valgrind-devel-3.5.0-5.el5.x86_64" 卸载这个依赖 1:3.5.0-5.el5 的valgrind,然后再 用 "rpm -e --allmatches valgrind" 卸载第二个 valgrind,卸载成功。



你可能感兴趣的:(centos,dependencies)