修改阿里源命令
This commit is contained in:
parent
066c5a2207
commit
679b3efe3c
@ -26,11 +26,14 @@ for i in `ls /etc/yum.repos.d|grep -v bak`
|
|||||||
do
|
do
|
||||||
\mv /etc/yum.repos.d/${i} /etc/yum.repos.d/bak/${DATE}
|
\mv /etc/yum.repos.d/${i} /etc/yum.repos.d/bak/${DATE}
|
||||||
done
|
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 -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/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/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 clean all
|
||||||
yum makecache
|
yum makecache
|
||||||
|
yum install -y epel-release
|
||||||
}
|
}
|
||||||
|
|
||||||
TOOL_INSTALL()
|
TOOL_INSTALL()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user