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