diff --git a/newset.sh b/newset.sh index 58e5bfd..7e76f55 100644 --- a/newset.sh +++ b/newset.sh @@ -26,11 +26,14 @@ for i in `ls /etc/yum.repos.d|grep -v bak` do \mv /etc/yum.repos.d/${i} /etc/yum.repos.d/bak/${DATE} done -wget http://mirrors.aliyun.com/repo/Centos-7.repo -O /etc/yum.repos.d/CentOS-Base.repo -wget http://mirrors.aliyun.com/repo/Centos-7.repo -P /etc/yum.repos.d/ -wget http://mirrors.aliyun.com/repo/epel-7.repo -P /etc/yum.repos.d/ +#wget http://mirrors.aliyun.com/repo/Centos-7.repo -O /etc/yum.repos.d/CentOS-Base.repo +#wget http://mirrors.aliyun.com/repo/Centos-7.repo -P /etc/yum.repos.d/ +#wget http://mirrors.aliyun.com/repo/epel-7.repo -P /etc/yum.repos.d/ +wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo +wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo yum clean all yum makecache +yum install -y epel-release } TOOL_INSTALL()