Installing MySQl 5.5 on CentOS 6 dependencies conflict

faridv asked:

I installed mysql on my centos 6 yesterday but I wasb’t aware that it’s installing mysql 5.1 which is an outdated version. Now I’ve remove old version and all it’s dependencies, but when I try to install MySQL 5.5 yum says there are problems because of mysql-libs conflicting with new one.

[root@Pooya /]# yum --enablerepo=remi install mysql mysql-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.kiewel-online.ch
 * epel: kartolo.sby.datautama.net.id
 * extras: ftp.linux.org.tr
 * ius: download.srv.ro
 * remi: remi-mirror.dedipower.com
 * rpmforge: mirror.nl.leaseweb.net
 * updates: ftp.plusline.de
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.x86_64 0:5.5.28-1.el6.remi will be installed
--> Processing Dependency: mysql-libs(x86-64) = 5.5.28-1.el6.remi for package: mysql-5.5.28-1.el6.remi.x86_64
---> Package mysql-server.x86_64 0:5.5.28-1.el6.remi will be installed
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.5.28-1.el6.remi.x86_64
--> Running transaction check
---> Package mysql-libs.x86_64 0:5.5.28-1.el6.remi will be installed
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Running transaction check
---> Package mysql51-libs.x86_64 0:5.1.66-1.ius.el5 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================================================
 Package                                       Arch                                  Version                                           Repository                           Size
=================================================================================================================================================================================
Installing:
 mysql                                         x86_64                                5.5.28-1.el6.remi                                 remi                                5.7 M
 mysql-server                                  x86_64                                5.5.28-1.el6.remi                                 remi                                 10 M
Installing for dependencies:
 mysql-libs                                    x86_64                                5.5.28-1.el6.remi                                 remi                                771 k
 mysql51-libs                                  x86_64                                5.1.66-1.ius.el5                                  ius                                 1.7 M
 perl-DBD-MySQL                                x86_64                                4.013-3.el6                                       base                                134 k

Transaction Summary
=================================================================================================================================================================================

As you can see it’s downloading both mysql libs for mysql 5.5 and 5.1! How can I fix that?

My answer:


You also have the IUS community repo installed and enabled. Disable this repo, as it conflicts with remi (and many other repositories).


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.