Created
October 17, 2012 17:00
-
-
Save btobolaski/3906717 to your computer and use it in GitHub Desktop.
A script to install the EPEL repo if it isn't installed.
This file contains 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
#!/bin/bash | |
if [ ! -f /etc/yum.repos.d/epel.repo ] | |
then | |
wget http://mirror.es.its.nyu.edu/epel/5/i386/epel-release-5-4.noarch.rpm | |
yum localinstall epel-release-5-4.noarch.rpm | |
rm -f epel-release-5-4.noarch.rpm | |
sed -i "s/enabled=1/enabled=0/g" /etc/yum.repos.d/epel.repo | |
fi |
This file contains 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
#!/bin/bash | |
if [ ! -f /etc/yum.repos.d/epel.repo ] | |
then | |
wget http://mirror.pnl.gov/epel/6/i386/epel-release-6-7.noarch.rpm | |
yum localinstall epel-release-6-7.noarch.rpm | |
rm -f epel-release-6-7.noarch.rpm | |
sed -i "s/enabled=1/enabled=0/g" /etc/yum.repos.d/epel.repo | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment