Centos 6でEPELを有効にしようとしましたが、repolistには表示されません。

Centos 6でEPELを有効にしようとしましたが、repolistには表示されません。

を実行すると、yum repolistEPELはリストされません。

# 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

おすすめ記事