On-premise 에서 PLURA 에이전트 설치하기 curl

1. CentOS 6

1) Change Base CentOS repo

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.org
curl -o /etc/yum.repos.d/CentOS-Base.repo https://rpms.plura.io/module/baseurl/6/CentOS-Base.repo

mv /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6.org
curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 https://rpms.plura.io/module/baseurl/6/RPM-GPG-KEY-CentOS-6

2) Install epel

mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.org
curl -o /etc/yum.repos.d/epel.repo https://rpms.plura.io/module/baseurl/6/epel.repo

mv /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6.org
curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 https://rpms.plura.io/module/baseurl/6/RPM-GPG-KEY-EPEL-6

or

yum install https://rpms.plura.io/module/baseurl/6/epel-release-latest-6.noarch.rpm
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.org
curl -o /etc/yum.repos.d/epel.repo https://rpms.plura.io/module/baseurl/6/epel.repo

2. CentOS 7

1) Change Base CentOS repo

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.org
curl -o /etc/yum.repos.d/CentOS-Base.repo https://rpms.plura.io/module/baseurl/7/CentOS-Base.repo

mv /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7.org
curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 https://rpms.plura.io/module/baseurl/7/RPM-GPG-KEY-CentOS-7

2) Install epel

mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.org
curl -o /etc/yum.repos.d/epel.repo https://rpms.plura.io/module/baseurl/7/epel.repo

mv /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7.org
curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 https://rpms.plura.io/module/baseurl/7/RPM-GPG-KEY-EPEL-7

or

yum install https://rpms.plura.io/module/baseurl/7/epel-release-latest-7.noarch.rpm
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.org
curl -o /etc/yum.repos.d/epel.repo https://rpms.plura.io/module/baseurl/7/epel.repo