天天看點

Centos7修改yum源

1. 備份本地yum源

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

2.擷取阿裡yum源配置檔案

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

3.更新cache

yum      

繼續閱讀