Jak*_*son 6 linux centos yum repository centos6
在我的 CentOS 6.4 服务器上,我运行的是从 remi存储库安装的 MySQL 5.5.33 。我决定通过 MySQL 自己的 yum 存储库将 MySQL 升级到 5.6.x:
安装存储库后,我将其作为我的存储库列表:
# yum repolist enabled
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* Webmin: download.webmin.com
* base: mirrors.xmission.com
* epel: mirror.steadfast.net
* extras: mirror.thelinuxfix.com
* remi: remi.check-update.co.uk
* updates: mirrors.xmission.com
repo id repo name status
Webmin Webmin Distribution Neutral 175
base CentOS-6 - Base 6,367
epel Extra Packages for Enterprise Linux 6 - x86_64 10,737
extras CentOS-6 - Extras 14
mysql-connectors-community MySQL Connectors Community 6
mysql-tools-community MySQL Tools Community 6
mysql56-community MySQL 5.6 Community Server 46
remi Les RPM de remi pour Enterprise Linux 6 - x86_64 1,485
updates CentOS-6 - Updates 864
repolist: 19,700
Run Code Online (Sandbox Code Playgroud)
因此安装并启用了 MySQL 5.6 存储库。现在,如果我尝试检查已安装 MySQL 的信息以查看可用的最新版本,我会得到以下信息:
# yum info mysql
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* Webmin: download.webmin.com
* base: mirrors.xmission.com
* epel: mirror.steadfast.net
* extras: mirror.thelinuxfix.com
* remi: remi.check-update.co.uk
* updates: mirrors.xmission.com
Installed Packages
Name : mysql
Arch : x86_64
Version : 5.5.33
Release : 1.el6.remi
Size : 29 M
Repo : installed
From repo : remi
Summary : MySQL clie.......
Available Packages
Name : mysql
Arch : x86_64
Version : 5.5.37
Release : 1.el6.remi
Size : 5.8 M
Repo : remi
Summary : MySQL client progr....
Run Code Online (Sandbox Code Playgroud)
所以看来 yum 仍在寻找最新版本的 remi 存储库。我猜它甚至没有查看 mysql56-community 存储库。所以接下来我试试这个:
# yum info mysql --disablerepo=\* --enablerepo=mysql56-community
Run Code Online (Sandbox Code Playgroud)
应该忽略除 Mysql 存储库之外的所有其他存储库。但我得到:
# yum info mysql --disablerepo=\* --enablerepo=mysql56-community
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Installed Packages
Name : mysql
Arch : x86_64
Version : 5.5.33
Release : 1.el6.remi
Size : 29 M
Repo : installed
From repo : remi
Summ......
Run Code Online (Sandbox Code Playgroud)
所以它只列出我安装的版本,并没有报告任何其他更新的版本可用。我期待从 mysql56-community 存储库中看到 5.6.x 版本。
我在这里缺少什么?这里是否存在某种回购冲突?
更新:
# yum --disablerepo=\* --enablerepo='mysql*-community*' list available
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
mysql55-community | 2.5 kB 00:00
mysql57-community-dmr | 2.5 kB 00:00
Available Packages
mysql-community-client.x86_64 5.6.17-4.el6 mysql56-community
mysql-community-common.i686 5.6.17-4.el6 mysql56-community
mysql-community-common.x86_64 5.6.17-4.el6 mysql56-community
mysql-community-devel.i686 5.6.17-4.el6 mysql56-community
mysql-community-devel.x86_64 5.6.17-4.el6 mysql56-community
mysql-community-embedded.i686 5.6.17-4.el6 mysql56-community
mysql-community-embedded.x86_64 5.6.17-4.el6 mysql56-community
mysql-community-embedded-devel.i686 5.6.17-4.el6 mysql56-community
mysql-community-embedded-devel.x86_64 5.6.17-4.el6 mysql56-community
mysql-community-libs.i686 5.6.17-4.el6 mysql56-community
mysql-community-libs.x86_64 5.6.17-4.el6 mysql56-community
mysql-community-libs-compat.i686 5.6.17-4.el6 mysql56-community
mysql-community-libs-compat.x86_64 5.6.17-4.el6 mysql56-community
mysql-community-server.x86_64 5.6.17-4.el6 mysql56-community
mysql-community-test.x86_64 5.6.17-4.el6 mysql56-community
mysql-connector-odbc.x86_64 5.3.2-1.el6 mysql-connectors-community
mysql-connector-python.noarch 1.1.6-1.el6 mysql-connectors-community
mysql-utilities.noarch 1.3.6-1.el6 mysql-tools-community
mysql-workbench-community.x86_64 6.1.4-1.el6 mysql-tools-community
Run Code Online (Sandbox Code Playgroud)
因此有可用的 mysql-community-* 包,但没有仅称为mysql-server. 如果我安装这些mysql-community*软件包,它与mysql-server我当前安装的软件包有何冲突?
小智 -1
您提供的链接建议使用“ --enablerepo='mysql*-community*'”,我会尝试一下。您还可以.repo编辑/etc/yum.repos.d/. 确保已设置而不是关闭存储库的设置/etc/yum.repos.d/remi.repo。enabled=0另外,对于 mysql 社区存储库文件,请确保启用设置为 1。
| 归档时间: |
|
| 查看次数: |
3481 次 |
| 最近记录: |