系统相关
首页 > 系统相关> > 更换yum源为阿里云源

更换yum源为阿里云源

作者:互联网

  1. 切换到/etc/yum.repos.d/目录下cd /etc/yum.repos.d

  2. (推荐)备份原有yum源文件mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

  3. 下载阿里云yum源wget -O /etc//yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo CentOS-7.repo(以Centos7为例)

  4. 清理yum缓存yum clean all

  5. 生成新的yum缓存yum makecache

标签:云源,CentOS,源为,repos,repo,etc,Base,yum
来源: https://www.cnblogs.com/limonene0x/p/15266209.html