红联Linux门户
Linux帮助

MySQL 卸载的问题

发布时间:2006-08-24 00:07:16来源:红联作者:Redassociation
在安装 MySQL-client-4.1.16-1.glibc23.rpm 的时候

显示与 mysql-3.23.54a-11 冲突 可是我把那些冲突的文件名前面全部都加上#改名

却 还在冲突! 默认安装的MYSQL只是换了个版本!

试图 添加删除程序卸载 却显示却少个软件包无法找到 卸不了!

[code]Preparing... ########################################### [100%]
file /usr/bin/mysql from install of MySQL-client-4.1.16-1.glibc23
conflicts with file from package mysql-3.23.54a-11
file /usr/bin/mysql_find_rows from install of MySQL-client-4.1.16-1.glibc23
conflicts with file from package mysql-3.23.54a-11
file /usr/bin/mysqlaccess from install of MySQL-client-4.1.16-1.glibc23
conflicts with file from package mysql-3.23.54a-11
file /usr/bin/mysqlbinlog from install of MySQL-client-4.1.16-1.glibc23
conflicts with file from package mysql-3.23.54a-11
file /usr/bin/mysqlcheck from install of MySQL-client-4.1.16-1.glibc23
conflicts with file from package mysql-3.23.54a-11
file /usr/bin/mysqldump from install of MySQL-client-4.1.16-1.glibc23
conflicts with file from package mysql-3.23.54a-11
file /usr/bin/mysqldumpslow from install of MySQL-client-4.1.16-1.glibc23
conflicts with file from package mysql-3.23.54a-11
file /usr/bin/mysqlimport from install of MySQL-client-4.1.16-1.glibc23
conflicts with file from package mysql-3.23.54a-11
file /usr/bin/mysqlshow from install of MySQL-client-4.1.16-1.glibc23
conflicts with file from package mysql-3.23.54a-11
file /usr/share/man/man1/mysql.1.gz from install of MySQL-client-4.1.16-1.glibc23
conflicts with file from package mysql-3.23.54a-11
file /usr/share/man/man1/mysqlaccess.1.gz from install of MySQL-client-4.1.16-1.glibc23
conflicts with file from package mysql-3.23.54a-11
file /usr/share/man/man1/mysqladmin.1.gz from install of MySQL-client-4.1.16-1.glibc23
conflicts with file from package mysql-3.23.54a-11
file /usr/share/man/man1/mysqldump.1.gz from install of MySQL-client-4.1.16-1.glibc23
conflicts with file from package mysql-3.23.54a-11
file /usr/share/man/man1/mysqlshow.1.gz from install of MySQL-client-4.1.16-1.glibc23
conflicts with file from package mysql-3.23.54a-11
file /usr/bin/mysqladmin from install of MySQL-client-4.1.16-1.glibc23
conflicts with file from package mysql-server-3.23.54a-11[/code]

可以用 rpm 命令强制 卸载 !!

rpm -e --nodeps (不检查依赖性 ) 数据包名

然后安装 新的 或者可以用

rpm -i --replacepkgs (强制重新安装已经安装的软件包 )

rpm -i --nodeps (不检查依赖性 ) 这2个 都可以 看你的选择

不过一般升级新版本 用 rpm -U 如果加 -test 的话可以先测试一下可以不可以升级 !!

MySQL-client-4.1.16-1.glibc23.rpm 这个应该是客户相关的 rpm 吧? 因为我很少这样升级rpm包。所以具体的情况不是很了解 !! 因为rpm包关联性很强,经常是安装中错误,然后找关联的包。再安装这个,有时会要找很多关联包,才能装完整。
文章评论

共有 2 条评论

  1. linuxguy 于 2007-06-26 23:45:16发表:

    :0L

  2. XiaoLLei 于 2007-06-22 08:28:08发表:

    太感谢了。痛哭流涕啊……