centos - Two rpms with the same prefix name on one repository

07
2014-07
  • motaz

    I am using CentOS, I have a local repository and I want to add mysql server and mysql cluster rpms on it so I added all required rpm and all dependencies.

    At client that added my repo

    list all rpm with MYSQL in repo

    [root@s2 ~]# yum list available |grep MySQL
    MySQL-Cluster-client-gpl.x86_64        7.3.5-1.el6                     localrepo
    MySQL-Cluster-server-gpl.x86_64        7.3.5-1.el6                     localrepo
    MySQL-Cluster-shared-compat-gpl.x86_64 7.3.5-1.el6                     localrepo
    MySQL-server.x86_64                    5.6.17-1.el6                    localrepo
    

    try to install mysql server

    [root@s2 ~]# yum install mysql-server
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    localrepo                                                | 2.9 kB     00:00
    Setting up Install Process
    Package MySQL-server is obsoleted by MySQL-Cluster-server-gpl, trying to install MySQL-Cluster-server-gpl-7.3.5-1.el6.x86_64 instead
    Resolving Dependencies
    --> Running transaction check
    ---> Package MySQL-Cluster-server-gpl.x86_64 0:7.3.5-1.el6 will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package                      Arch       Version            Repository     Size
    ================================================================================
    Installing:
     MySQL-Cluster-server-gpl     x86_64     7.3.5-1.el6        localrepo     142 M
    
    Transaction Summary
    ================================================================================
    Install       1 Package(s)
    
    Total download size: 142 M
    Installed size: 612 M
    Is this ok [y/N]:
    

    The yum install mysql cluster server instated of mysql server

    How to solve this problem?

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    How do you Install php-mysql on CentOS
  • qodeninja

    if i try to install php-mysql I get the following error... not sure how to recover from it to get MySQL and the PHP MySQL module up and running

    [12:51]~> yum install php-mysql
    Loaded plugins: fastestmirror, priorities
    Loading mirror speeds from cached hostfile
     * addons: mirror.rocketinternet.net
     * base: mirror.san.fastserv.com
     * epel: mirrors.kernel.org
     * extras: mirror.nic.uoregon.edu
     * ius: www.applesauceman.com
     * updates: mirror.5ninesolutions.com
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package php-mysql.x86_64 0:5.1.6-27.el5_5.3 set to be updated
    --> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-mysql
    --> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15)(64bit) for package: php-mysql
    --> Processing Dependency: libmysqlclient.so.15()(64bit) for package: php-mysql
    --> Running transaction check
    ---> Package mysql.x86_64 0:5.0.77-4.el5_5.4 set to be updated
    ---> Package php-common.x86_64 0:5.1.6-27.el5_5.3 set to be updated
    --> Processing Conflict: mysql conflicts MySQL
    --> Finished Dependency Resolution
    mysql-5.0.77-4.el5_5.4.x86_64 from updates has depsolving problems
      --> mysql conflicts with MySQL-server-community
    Error: mysql conflicts with MySQL-server-community
     You could try using --skip-broken to work around the problem
     You could try running: package-cleanup --problems
                            package-cleanup --dupes
                            rpm -Va --nofiles --nodigest
    The program package-cleanup is found in the yum-utils package.
    

  • Related Answers
  • Ignacio Vazquez-Abrams

    You'll need to install the shared compatibility libraries package from the same place that you got the server package first.