sudo sed -i 's|baseurl=http://mirrors.linode.com/centos/\$releasever/os/\$basearch/|baseurl=http://mirrors.aliyun.com/centos/7/os/x86_64/|g' /etc/yum.repos.d/CentOS-Base.repo

sudo sed -i     's|baseurl=http://mirrors.linode.com/centos/\$releasever/updates/\$basearch/|baseurl=http://mirrors.aliyun.com/centos/7/updates/x86_64/|g' /etc/yum.repos.d/CentOS-Base.repo

sudo sed -i 's|baseurl=http://mirrors.linode.com/centos/\$releasever/extras/\$basearch/|baseurl=http://mirrors.aliyun.com/centos/7/extras/x86_64/|g' /etc/yum.repos.d/CentOS-Base.repo

sudo sed -i 's|baseurl=http://mirrors.linode.com/centos/\$releasever/centosplus/\$basearch/|baseurl=http://mirrors.aliyun.com/centos/7/centosplus/x86_64/|g' /etc/yum.repos.d/CentOS-Base.repo

标签: none

添加新评论