rpmforge/epel/remi/MIRACLE ZBXのリポジトリの追加(CentOS7)

とりあえず追加してenableを1に変更

# CentOS7 repoinstall.sh
# RPMforge
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/$(curl http://pkgs.repoforge.org/rpmforge-release/ | awk -F\" '/el7/{print $6}' | tail -1)
rpm -q rpmforge-release
sed -i -e 's/\(enabled=\)0/\11/g' /etc/yum.repos.d/rpmforge.repo
# EPEL
rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
rpm -ivh http://ftp.iij.ad.jp/pub/linux/fedora/epel/7/x86_64/e/$(curl http://ftp.iij.ad.jp/pub/linux/fedora/epel/7/x86_64/e/ | grep epel-release | awk -F\" '{print $8}' | tail -1)
rpm -q epel-release
sed -i -e 's/\(enabled=\)0/\11/g' /etc/yum.repos.d/epel.repo
# ELRepo
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
curl http://elrepo.org/tiki/tiki-index.php | grep "www.elrepo.org/elrepo-release-7" | awk -F\" '{print "rpm -Uvh "$8}' | sh 
rpm -q elrepo-release
sed -i -e 's/\(enabled=\)0/\11/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-7.rpm
rpm -q remi-release
sed -i -e 's/\(enabled=\)0/\11/g' /etc/yum.repos.d/remi.repo
# MIRACLE ZBX 2.2
rpm --import http://ftp.miraclelinux.com/zbx/RPM-GPG-KEY-MIRACLE
rpm -ihv http://ftp.miraclelinux.com/zbx/2.2/miracle-zbx-release-2.2-1.noarch.rpm
sed -i -e 's/\(enabled=\)0/\11/g' /etc/yum.repos.d/miracle-zbx.repo