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
上一篇:[: 11: y: unexpected operator问题


下一篇:Docker基础速成(一)