sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm sudo yum install -y epel-release sudo yum-config-manager --enable epel sudo yum repolist vim /etc/yum.repos.d/epel.repo
Via. https://aws.amazon.com/cn/premiumsupport/knowledge-center/ec2-enable-epel/