を実行すると、yum repolist
EPELはリストされません。
# yum repolist
Loaded plugins: downloadonly, fastestmirror, protectbase, refresh-packagekit,
: security
Loading mirror speeds from cached hostfile
* base: centos.mia.host-engine.com
* extras: mirror-centos.hostingswift.com
* updates: centos-mirror.jchost.net
0 packages excluded due to repository protections
repo id repo name status
base CentOS-6 - Base 6,518
extras CentOS-6 - Extras 35
updates CentOS-6 - Updates 209
repolist: 6,762
フォローするhttp://xmodulo.com/how-to-set-up-epel-repository-on-centos.html
このガイドでは、RPM キーと GPG キーのインストール方法を説明しました。私はすでに次のことをしました。
# sudo rpm -Uvh http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
Retrieving http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.
rpm
Preparing... ########################################### [100%]
package epel-release-6-8.noarch is already installed
ベストアンサー1
確かに有効になっていますか?リポジトリが有効になっていないと、repolist
.inspectionにファイルは表示されません/etc/yum.repos.d/*.repo
。
たとえば、
[root@xxx01 ~]# yum repolist 2>&1 | grep epel
epel EPEL Repo 11,148
EPELがインストールされリストされていることがわかったrepolist
ので、それを無効にして再確認repolist
しました。
[root@xxx01 ~]# sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/epel.repo
[root@xxx01 ~]# yum repolist 2>&1 | grep epel
[root@xxx01 ~]#
編集する:
ストレージ構成の設定を--enablerepo
上書きするオプションを使用して、ストレージを一時的に有効にすることもできます。enabled