cd /etc/yum.repos.d/ # 备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup cat CentOS-Base.repo #更换阿里源 wget http://mirrors.aliyun.com/repo/Centos-altarch-7.repo -O /etc/yum.repos.d/CentOS-Base.repo #查看是否更换成功 cat /etc/yum.repos.d/CentOS-Base.repo
|