CentOS 7修改yum源为阿里源

1.备份本地源

1 # mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak

 

2.获取阿里yum源配置

1 # wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

 

3.更新缓存

1 # yum clean all
2 # yum makecache

 

4.更新软件包

1 # yum -y update 
2 # yum -y upgrad
posted @ 2019-04-08 19:55  Quail  阅读(247)  评论(0编辑  收藏  举报