Centos7 修改成阿里的yum源

1.备份本地yum源spa

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

2.获取阿里yum源配置文件code

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

3.更新cacheblog

yum makecache

4.安装get

yum -y update 
相关文章
相关标签/搜索