CentOS SCLo Software collections とRemi's RPM repository を追加します。

[root@heracles ~]# yum -y install centos-release-scl-rh centos-release-scl ←scl-リポジトリを追加


[root@heracles ~]# sed -i -e "s/\]$/\]\npriority=10/g" /etc/yum.repos.d/CentOS-SCLo-scl.repo ←プライオリティ=10 に設定

[root@heracles ~]# sed -i -e "s/\]$/\]\npriority=10/g" /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo ←プライオリティ=10 に設定

[root@heracles ~]# yum -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm ←rimiーリポジトリを追加

[root@heracles ~]# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-SCLo-scl.repo ← enabled=0 としておいて、必要な時のみ読み込む

[root@heracles ~]# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo ← enabled=0 としておいて、必要な時のみ読み込む