RedHat Linux:rpm包卸载时遇到的error: specifies multiple
准备在RedHat Linux系统上安装MySQL 5.1,先卸载自带的低版本MySQL,结果不知怎么搞的,同一个package出现了两次,版本也都是一样的:
rpm -qa | grep mysql
mysqlclient10-3.23.58-4.RHEL4.1
mysql-4.1.20-2.RHEL4.1
mysql-4.1.20-2.RHEL4.1
mysqlclient10-3.23.58-4.RHEL4.1
尝试卸载:
rpm -e mysqlclient10-3.23.58-4.RHEL4.1
error: “mysqlclient10-3.23.58-4.RHEL4.1″ 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.
rpm -e –allmatches mysqlclient10-3.23.58-4.RHEL4.1
rpm -e –allmatches mysql-4.1.20-2.RHEL4.1
warning: /etc/my.cnf saved as /etc/my.cnf.rpmsave
OK,系统自带的旧版本MySQL卸载完成。
相关推荐
LychieFan 2020-06-16
secondid 2020-06-05
安得情怀似旧时 2020-04-22
Plant 2020-03-03
summerinsist 2020-08-21
窃破天道 2020-07-18
yishouwangnian 2020-06-21
OnMyHeart 2020-06-17
服务器开发的日子 2020-06-14
Wytheme 2020-06-11
waitzkj 2020-06-09
邓博学习笔记 2020-06-08
昭君出塞 2020-06-04
fushilin 2020-06-03
87901735 2020-06-02
heheeheh 2020-05-31
简单的快乐 2020-05-30