• rpm卸载包遭遇 specifies multiple packages 错误


    使用 rpm删除软件时报错如下:

    [root@hostxxlidan]# rpm -qa |grep -i mysql
    mysql-devel-5.0.95-5.el5_9
    mysql-devel-5.0.95-5.el5_9
    MySQL-shared-5.5.34-1.rhel5
    mysql-5.0.95-5.el5_9
    mysql-server-5.0.95-5.el5_9
    MySQL-shared-compat-5.5.34-1.rhel5
    perl-DBD-MySQL-3.0007-2.el5
    mysql-5.0.95-5.el5_9

    然后执行删除:

    [root@host74 lidan]# rpm -e mysql-5.0.95-5.el5_9
    error: "mysql-5.0.95-5.el5_9" specifies multiple packages

    上面确实两个包,故报这个问题很正常。

    man rpm 发现有一个参数 --allmatches



           --allmatches
                  Remove all versions of the package which match PACKAGE_NAME. Normally an error is issued if PACKAGE_NAME
                  matches multiple packages.

    然后执行

    [root@hostxxx lidan]# rpm -e --allmatches   mysql-5.0.95-5.el5_9
    error: Failed dependencies:
            mysql = 5.0.95-5.el5_9 is needed by (installed) mysql-devel-5.0.95-5.el5_9.x86_64
            mysql = 5.0.95-5.el5_9 is needed by (installed) mysql-devel-5.0.95-5.el5_9.i386
            libmysqlclient.so.15 is needed by (installed) mysql-devel-5.0.95-5.el5_9.i386
            libmysqlclient_r.so.15 is needed by (installed) mysql-devel-5.0.95-5.el5_9.i386

    还有依赖再去依赖

    rpm -e --allmatches --nodeps  mysql-5.0.95-5.el5_9

  • 相关阅读:
    json.stringify()和json.parse()
    C# 对json对象嵌套数组
    sql 时间段内没有的数据等于0
    epoint:TreeView
    Asp.Net使用org.in2bits.MyXls.dll操作excel的应用
    VS中的生成事件
    mysql主从复制
    mysql索引优化分析
    MySQL逻辑架构简介
    大数据DMP画像系统(转载 简介-龙果学院)
  • 原文地址:https://www.cnblogs.com/l10n/p/7528525.html
Copyright © 2020-2023  润新知