置换163yum 源(2018-01-07 00:53:18)
mv -i /etc/yum.repos.d/ /etc/yum.repos.d.bak/ mkdir -p /etc/yum.repos.d/ wget http://mirrors.163.com/.help/CentOS7-Base-163.repo -O /etc/yum.repos.d/CentOS-Base.repo sed -i ‘/^gpgcheck/s/=.*/=0/‘ /etc/yum.repos.d/CentOS-Base.repo