I have a CentOS 6 host running a MySQL server. I want to migrate this server away from the MySQL Enterprise Server packages to MySQL Community Server packages, with the following specifics:
- The MySQL Enterprise RPMs are called
mysql-commercial-something and are at version '5.7.22-1.1'. I store these in a custom repo.
- The Community RPMs are called
mysql-community-something, and the latest available version is '5.7.22-1', which is a single '.1' release behind the Commercial version. These are stored in a public repo (http://repo.mysql.com/ ).
Since the Community RPM has version number which is slightly behind the Commercial version, I cannot simply swap out one package for another. Yum complains with the error "Package foo-1 is obsoleted by foo-1.1":
[root@devdb ~]# yum list --quiet available 'mysql-*-server' Available Packages mysql-community-server.x86_64 5.7.22-1.el6 mysql57-community [root@devdb ~]# [root@devdb ~]# yum install --quiet mysql-community-server Package mysql-community-server-5.7.22-1.el6.x86_64 is obsoleted by mysql-commercial-server-5.7.22-1.1.el6.x86_64 which is already installed [root@devdb ~]#
I've tried a couple things, such as specifying the specific version number presented in How to install an older version of php (5.2.17) in Linux?, but that doesn't work in this case:
[root@devdb ~]# yum install --quiet mysql-community-server-5.7.22-1.el6.x86_64 Package mysql-community-server-5.7.22-1.el6.x86_64 is obsoleted by mysql-commercial-server-5.7.22-1.1.el6.x86_64 which is already installed [root@devdb ~]#
How can I force Yum to use use a package with an older version number?