update EPEL repo installation

Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
Teddysun 2017-08-14 21:03:34 +09:00
parent 6e31282c79
commit b0022092ea
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D
2 changed files with 12 additions and 5 deletions

View File

@ -451,13 +451,16 @@ fi
install_dependencies() {
if check_sys packageManager yum; then
yum install -y epel-release
[ ! -f /etc/yum.repos.d/epel.repo ] && echo -e "${red}Error:${plain} Install EPEL repo failed, please check it." && exit 1
yum --enablerepo=epel -y install udns-devel
echo -e "[${green}Info${plain}] Adding the EPEL repository..."
yum install -y epel-release yum-utils
[ ! -f /etc/yum.repos.d/epel.repo ] && echo -e "${red}Error:${plain} Install EPEL repository failed, please check it." && exit 1
yum-config-manager --enable epel
echo -e "[${green}Info${plain}] Adding the EPEL repository complete..."
yum_depends=(
unzip gzip openssl openssl-devel gcc python python-devel python-setuptools pcre pcre-devel libtool libevent xmlto
autoconf automake make curl curl-devel zlib-devel perl perl-devel cpio expat-devel gettext-devel asciidoc
libev-devel
libev-devel udns-devel
)
for depend in ${yum_depends[@]}; do
error_detect_depends "yum -y install ${depend}"

View File

@ -314,7 +314,11 @@ pre_install(){
echo "Press any key to start...or press Ctrl+C to cancel"
char=`get_char`
#Install necessary dependencies
yum install -y epel-release && yum makecache
echo -e "[${green}Info${plain}] Adding the EPEL repository..."
yum install -y epel-release yum-utils
[ ! -f /etc/yum.repos.d/epel.repo ] && echo -e "${red}Error${plain} Install EPEL repository failed, please check it." && exit 1
yum-config-manager --enable epel
echo -e "[${green}Info${plain}] Adding the EPEL repository complete..."
yum install -y unzip openssl openssl-devel gettext gcc autoconf libtool automake make asciidoc xmlto udns-devel libev-devel pcre pcre-devel git
}