簡體   English   中英

yum存儲庫設置32位和64位,mysql連接器

[英]yum repository setup for both 32 bit and 64 bit, mysql connector

在我的存儲庫設置中,我有以下內容:

[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位機器,我的basesearch是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是正確的。

這確實有效。 它有點笨拙,我認為有更好的方法,但它起作用並幫助我解決一些問題。

編輯,為清楚起見,這里是我的連接器repos以獲取我的機器上的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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM