1. 程式人生 > >CentOS 7修改yum源為阿裏源

CentOS 7修改yum源為阿裏源

bsp entos mir ror http iyu clas yum ase

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

CentOS 7修改yum源為阿裏源