安装wget
更换阿里源
1 2 3 4 5 6 7 8
| 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
|
更换成功后清除缓存并重建
1 2
| yum clean all yum makecache
|
安装vim