在我的存储库设置中,我具有以下内容:
[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/6/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
因为我的机器是64位机器,所以我的基本搜索是x86_64(请参见下面的yum-debug-dump输出):
yum-debug-dump version 1
%%%%SYSTEM INFO
uname: 2.6.32-573.12.1.el6.x86_64, x86_64
rpm ver: RPM version 4.8.0
python ver: 2.6.6 (r266:84292, Aug 18 2016, 15:13:37) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
%%%%YUM INFO
arch: ia32e
basearch: x86_64
releasever: 6
yum ver: 3.2.29
enabled plugins: fastestmirror,presto
global excludes:
.... ( entire output NOT included )
是否可以使用以下配置创建另一个名为“ mysql-connectors-community-i386”的存储库,因此我可以同时支持这两种存储库:
[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/6/i386/
enabled=1
gpgcheck=1
gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
是的,URL是正确的。
答案 0 :(得分:0)
这确实有效。这有点笨拙,我认为有更好的方法,但是它有效并且帮助我解决了一些问题。
为清楚起见,请进行编辑,这是我的连接器存储库,可同时在我的计算机上使用64位和32位:
more /etc/yum.repos.d/mysql-community.repo
...
[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[mysql-connectors-community-32]
name=MySQL Connectors Community
baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/7/i386/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql