修改linode CentOS-Base.repo
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
版权属于:fanqiang.info
本文链接:https://www.fanqiang.info/archives/xiu-gai-centosbaxserepo.html
若无特别注明,本文皆为“fanqiang.info”原创,随意转载但请保留文章出处。更多精彩内容在电报频道更新: https://t.me/fqinfo