CentOS7 更换阿里云yum源

  • 备份本地yum源

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

  • 获取阿里yum源配置文件

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

注意:这里使用了wget,如果使用过程出现问题,请参考:这里

  • 更新cache

 yum makecache

 yum -y update 

发布了44 篇原创文章 · 获赞 17 · 访问量 2453

猜你喜欢

转载自blog.csdn.net/weixin_40391011/article/details/104069013