LoginSignup
12
12

More than 5 years have passed since last update.

CentOSにepelリポジトリ追加

Posted at

nodejsをyumでインストールするため、epelリポジトリの追加を行った。

32bitの場合

rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm

64bitの場合

rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm

この状態だと、デフォルトでepelが有効。また下記のようなエラーになってしまう。

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

こちら(参考2)の情報に従って以下の変更を行う。

# sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/epel.repo
# sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo

参考
1.http://qiita.com/you21979@github/items/4efd9fc4363573191b5c
2.https://community.hpcloud.com/article/centos-63-instance-giving-cannot-retrieve-metalink-repository-epel-error
3.http://centossrv.com/epel.shtml

12
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
12