Created
March 9, 2015 07:21
-
-
Save abn/0c1d030958a468cb6590 to your computer and use it in GitHub Desktop.
Install latest epel-release on RHEL 7 machine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| EPEL_URL_PREFIX=http://dl.fedoraproject.org/pub/epel/7/x86_64/e/ | |
| # install any requirements | |
| yum -y install curl | |
| RPM_NAME=$(curl --silent ${EPEL_URL_PREFIX} \ | |
| | egrep -oh "epel-release-7-[0-9]*.noarch.rpm" \ | |
| | sort -u | head -n 1) | |
| yum -y install ${EPEL_URL_PREFIX}${RPM_NAME} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment