安裝丨CentOS7更換阿裏雲yum源
阿新 • • 發佈:2018-11-14
base repo net 安裝 https tails alt 圖片 bak
參考:
https://blog.csdn.net/HistoryCreator/article/details/78570711 https://yq.aliyun.com/ziliao/408380
1、備份系統yum源
cp /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、添加EPEL源
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo
4、清理緩存並生成新的緩存
yum clean all
yum makecache
5、重新生成緩存
yum makecache
6、查看是否是阿裏雲配置
more CentOS-Base.repo
7、按個lrzsz,測試一下。
yum install lrzsz -y
安裝丨CentOS7更換阿裏雲yum源