我正在尝试在 CentOS 6.5 上使用 Chef 安装 MySQL。我已经准备好了存储库。
-rw-r--r--. 1 root root 256 Oct 15 16:59 centos-base.repo
-rw-r--r--. 1 root root 267 Oct 15 16:59 centos-updates.repo
-rw-r--r--. 1 root root 264 Oct 15 16:59 centos-extras.repo
-rw-r--r-- 1 root root 237 Oct 21 11:51 remi.repo
-rw-r--r-- 1 root root 300 Oct 21 11:52 epel.repo
然而,当我尝试这样做时yum search mysql
,它不能找到以下软件包(安装 MySQL 所需的):
mysql.x86_64 : MySQL client programs and shared libraries
mysql-devel.x86_64 : Files for development of MySQL applications
mysql-server.x86_64 : The MySQL server and related files
跑步yum repolist
回报:
repo id repo name status
centos-base CentOS-6.5 - Base 6,225+142
centos-extras CentOS-6.5 - Extras 7+8
centos-updates CentOS-6.5 - Updates 1,479+129
epel Extra Packages for Enterprise Linux 11,103+36
remi remi 2,245+30
repolist: 21,059
跑步yum list mysql
回报:
Error: No matching Packages to list
我的remi.repo
:
# Generated by Chef for
# Local modifications will be overwritten.
[remi]
name=remi
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
enabled=1
有什么想法吗?谢谢!