修改阿里源命令

This commit is contained in:
wzj 2022-12-11 17:58:03 +08:00
parent 066c5a2207
commit 679b3efe3c

View File

@ -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()