※普段は無効にしておく
RPMforge リポジトリ
# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
# rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
# yum -y update rpmforge-release
# cp -p /etc/yum.repos.d/rpmforge.repo /etc/yum.repos.d/rpmforge.repo.org
# sed -i -e "s/enabled = 1/enabled = 0/g" /etc/yum.repos.d/rpmforge.repo
EPEL リポジトリ
# rpm --import http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6
# rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
# yum -y update epel-release
# cp -p /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.org
# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/epel.repo
Elrepo リポジトリ
# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
# rpm -ivh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
# yum -y update elrepo-release
# cp -p /etc/yum.repos.d/elrepo.repo /etc/yum.repos.d/elrepo.repo.org
# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/elrepo.repo
Remi リポジトリ
# rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# yum -y update remi-release
nginx リポジトリ
# rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
# yum -y update nginx-release-centos
# cp -p /etc/yum.repos.d/nginx.repo /etc/yum.repos.d/nginx.repo.org
# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/nginx.repo
MySQL Community リポジトリ
# rpm -ivh http://repo.mysql.com/mysql-community-release-el6.rpm
# yum -y update mysql-community-release
# cp -p /etc/yum.repos.d/mysql-community.repo /etc/yum.repos.d/mysql-community.repo.org
# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/mysql-community.repo
Typesafe リポジトリ
# rpm -ivh http://rpm.typesafe.com/typesafe-repo-2.0.0-1.noarch.rpm
# yum -y update typesafe-repo
# cp -p /etc/yum.repos.d/typesafe.repo /etc/yum.repos.d/typesafe.repo.org
# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/typesafe.repo
スクリプト
install_repo.sh
#!/bin/bash
# RPMforge リポジトリ
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
yum -y update rpmforge-release
cp -p /etc/yum.repos.d/rpmforge.repo /etc/yum.repos.d/rpmforge.repo.org
sed -i -e "s/enabled = 1/enabled = 0/g" /etc/yum.repos.d/rpmforge.repo
# EPEL リポジトリ
rpm --import http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6
rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum -y update epel-release
cp -p /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.org
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/epel.repo
# Elrepo リポジトリ
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -ivh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
yum -y update elrepo-release
cp -p /etc/yum.repos.d/elrepo.repo /etc/yum.repos.d/elrepo.repo.org
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/elrepo.repo
# Remi リポジトリ
rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum -y update remi-release
# nginx リポジトリ
rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
yum -y update nginx-release-centos
cp -p /etc/yum.repos.d/nginx.repo /etc/yum.repos.d/nginx.repo.org
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/nginx.repo
# MySQL Community リポジトリ
rpm -ivh http://repo.mysql.com/mysql-community-release-el6.rpm
yum -y update mysql-community-release
cp -p /etc/yum.repos.d/mysql-community.repo /etc/yum.repos.d/mysql-community.repo.org
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/mysql-community.repo
# Typesafe リポジトリ
rpm -ivh http://rpm.typesafe.com/typesafe-repo-2.0.0-1.noarch.rpm
yum -y update typesafe-repo
cp -p /etc/yum.repos.d/typesafe.repo /etc/yum.repos.d/typesafe.repo.org
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/typesafe.repo