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 makecache

4.安装

yum -y update 
posted @ 2019-09-10 14:46  张顺海  阅读(1168)  评论(0编辑  收藏  举报