MySQL Forums
Forum List  »  Source, Builds, Binaries

yum conflict installing 5.6 from repo with 5.6 and 5.7 when older mysql-libs installed
Posted by: Mike Broderick
Date: October 10, 2016 01:43PM

We kick up a vanilla CentOS 6.7 install and try to install mysql-community-libs-5.6.17-4 from the MySQL repo (repo.mysql.com) by get conlficts. The OS Install already had this installed:

mysql-libs.x86_64 5.1.73-5.el6_6 @anaconda-CentOS-201508042137.x86_64/6.7

And a few packages (postfix< etc) depend on it.

We have enabled the 5.6 and 5.7 repos in /etc/yum.reposes.d/mysql-community.repo. When I try installing mysql-community-libs-5.6.17-4 we get this:

# yum install mysql-community-libs-5.6.17-4.el6
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.rackspace.com
* extras: mirrors.evowise.com
* updates: centos.mia.host-engine.com
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-libs.x86_64 0:5.6.17-4.el6 will be obsoleting
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.17-4.el6 for package: mysql-community-libs-5.6.17-4.el6.x86_64
---> Package mysql-libs.x86_64 0:5.1.73-5.el6_6 will be obsoleted
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: 2:postfix-2.6.6-6.el6_7.1.x86_64
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: 2:postfix-2.6.6-6.el6_7.1.x86_64
--> Running transaction check
---> Package mysql-community-common.x86_64 0:5.6.17-4.el6 will be installed
---> Package mysql-community-libs.x86_64 0:5.7.15-1.el6 will be obsoleting
--> Processing Dependency: mysql-community-common(x86-64) >= 5.7.9 for package: mysql-community-libs-5.7.15-1.el6.x86_64
---> Package mysql-community-libs-compat.x86_64 0:5.7.15-1.el6 will be obsoleting
--> Running transaction check
---> Package mysql-community-common.x86_64 0:5.6.17-4.el6 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.17-4.el6 for package: mysql-community-libs-5.6.17-4.el6.x86_64
---> Package mysql-community-common.x86_64 0:5.7.15-1.el6 will be installed
--> Finished Dependency Resolution
Error: Package: mysql-community-libs-5.6.17-4.el6.x86_64 (mysql56-community)
Requires: mysql-community-common(x86-64) = 5.6.17-4.el6
Available: mysql-community-common-5.6.15-1.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.15-1.el6
Available: mysql-community-common-5.6.16-1.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.16-1.el6
Available: mysql-community-common-5.6.17-4.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.17-4.el6
Available: mysql-community-common-5.6.19-2.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.19-2.el6
Available: mysql-community-common-5.6.20-4.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.20-4.el6
Available: mysql-community-common-5.6.21-2.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.21-2.el6
Available: mysql-community-common-5.6.22-2.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.22-2.el6
Available: mysql-community-common-5.6.23-2.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.23-2.el6
Available: mysql-community-common-5.6.24-3.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.24-3.el6
Available: mysql-community-common-5.6.25-2.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.25-2.el6
Available: mysql-community-common-5.6.26-2.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.26-2.el6
Available: mysql-community-common-5.6.27-2.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.27-2.el6
Available: mysql-community-common-5.6.28-2.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.28-2.el6
Available: mysql-community-common-5.6.29-2.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.29-2.el6
Available: mysql-community-common-5.6.30-2.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.30-2.el6
Available: mysql-community-common-5.6.31-2.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.31-2.el6
Available: mysql-community-common-5.6.32-2.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.32-2.el6
Available: mysql-community-common-5.6.33-2.el6.x86_64 (mysql56-community)
mysql-community-common(x86-64) = 5.6.33-2.el6
Available: mysql-community-common-5.7.9-1.el6.x86_64 (mysql57-community)
mysql-community-common(x86-64) = 5.7.9-1.el6
Available: mysql-community-common-5.7.10-1.el6.x86_64 (mysql57-community)
mysql-community-common(x86-64) = 5.7.10-1.el6
Available: mysql-community-common-5.7.10-2.el6.x86_64 (mysql57-community)
mysql-community-common(x86-64) = 5.7.10-2.el6
Available: mysql-community-common-5.7.11-1.el6.x86_64 (mysql57-community)
mysql-community-common(x86-64) = 5.7.11-1.el6
Available: mysql-community-common-5.7.12-1.el6.x86_64 (mysql57-community)
mysql-community-common(x86-64) = 5.7.12-1.el6
Available: mysql-community-common-5.7.13-1.el6.x86_64 (mysql57-community)
mysql-community-common(x86-64) = 5.7.13-1.el6
Available: mysql-community-common-5.7.14-1.el6.x86_64 (mysql57-community)
mysql-community-common(x86-64) = 5.7.14-1.el6
Installing: mysql-community-common-5.7.15-1.el6.x86_64 (mysql57-community)
mysql-community-common(x86-64) = 5.7.15-1.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
#

As you can see the postfix dependency causes it to try and install mysql-community-libs-5.7.15-1 as well as mysql-community-common-5.6.17-4 which conflict (as presumably mysql-community-libs-5.7.15-1 depends on mysql-community-common-5.7.15-1)

If I remove the dependencies on mysql-libs-5.1.73 (i.e., yum remove postfix), it then works...

# yum install mysql-community-libs-5.6.17-4.el6
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.rackspace.com
* extras: mirrors.evowise.com
* updates: centos.mia.host-engine.com
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-libs.x86_64 0:5.6.17-4.el6 will be obsoleting
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.17-4.el6 for package: mysql-community-libs-5.6.17-4.el6.x86_64
---> Package mysql-libs.x86_64 0:5.1.73-5.el6_6 will be obsoleted
--> Running transaction check
---> Package mysql-community-common.x86_64 0:5.6.17-4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================
Installing:
mysql-community-libs x86_64 5.6.17-4.el6 mysql56-community 1.9 M
replacing mysql-libs.x86_64 5.1.73-5.el6_6
Installing for dependencies:
mysql-community-common x86_64 5.6.17-4.el6 mysql56-community 298 k

Transaction Summary
==========================================================================================================================
Install 2 Package(s)

Total size: 2.1 M
Total download size: 1.9 M
Is this ok [y/N]: y
Downloading Packages:
mysql-community-libs-5.6.17-4.el6.x86_64.rpm | 1.9 MB 00:02
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : mysql-community-common-5.6.17-4.el6.x86_64 1/3
Installing : mysql-community-libs-5.6.17-4.el6.x86_64 2/3
Erasing : mysql-libs-5.1.73-5.el6_6.x86_64 3/3
Verifying : mysql-community-libs-5.6.17-4.el6.x86_64 1/3
Verifying : mysql-community-common-5.6.17-4.el6.x86_64 2/3
Verifying : mysql-libs-5.1.73-5.el6_6.x86_64 3/3

Installed:
mysql-community-libs.x86_64 0:5.6.17-4.el6

Dependency Installed:
mysql-community-common.x86_64 0:5.6.17-4.el6

Replaced:
mysql-libs.x86_64 0:5.1.73-5.el6_6

Complete!
#


Is this a yum issue/bug or some dependency issue in the mysql RPMs forcing the errant behavior (seemingly wanting to install 2 different versions of the same mysql package).

(Note: We are trying to setup our own repo with both versions of mysql (5.6.17-4 and 5.7.15-1) and see the same issue when running against that vs the MySQL public repo.)

_Mike

Options: ReplyQuote


Subject
Views
Written By
Posted
yum conflict installing 5.6 from repo with 5.6 and 5.7 when older mysql-libs installed
2771
October 10, 2016 01:43PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.