![一个存储库中有两个具有相同前缀名称的 rpm](https://linux22.com/image/1411497/%E4%B8%80%E4%B8%AA%E5%AD%98%E5%82%A8%E5%BA%93%E4%B8%AD%E6%9C%89%E4%B8%A4%E4%B8%AA%E5%85%B7%E6%9C%89%E7%9B%B8%E5%90%8C%E5%89%8D%E7%BC%80%E5%90%8D%E7%A7%B0%E7%9A%84%20rpm.png)
我正在使用 CentOS,我有一个本地存储库,我想在其上添加 mysql 服务器和 mysql 集群 rpm,因此我添加了所有必需的 rpm 和所有依赖项。
在客户端添加了我的 repo
列出 repo 中所有带有 MYSQL 的 rpm
[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
尝试安装 mysql 服务器
[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]:
yum installmysql cluster server
安装mysql server
如何解决这个问题呢?