yum存储库设置(用于32位和64位),mysql连接器 [英] yum repository setup for both 32 bit and 64 bit, mysql connector

查看:89
本文介绍了yum存储库设置(用于32位和64位),mysql连接器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在存储库设置中,我具有以下内容:

In my repository setup, I have the following:

[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输出):

Because my machine is a 64 bit machine, my basesearch is x86_64 ( see below yum-debug-dump output ):

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"的存储库,并具有以下配置,以便我可以同时支持这两个存储库:

Is it possible to make another repository called, say, "mysql-connectors-community-i386" and with the following configuration so I can support both:

[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是正确的.

Yes, the URL is correct.

推荐答案

这确实有效.这有点笨拙,我认为有更好的方法,但是它有效,并帮助我解决了一些问题.

This actually does work. It is kind of klunky, and I assume there are better ways, but it works and helped me get around some issues.

为清楚起见,请进行编辑,这是我的连接器存储库,可同时在我的计算机上使用64位和32位:

Edit, for clarity, here are my connector repos to get both 64 bit and 32 bit on my machine:

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

这篇关于yum存储库设置(用于32位和64位),mysql连接器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆