CentOs Linux 对于 修改 yum源 为 阿里

修改yum源为阿里

  1. 备份本地yum源

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

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

    将 https://mirrors.tuna.tsinghua.edu.cn/help/centos/  中的内容粘贴到 CentOS-Base.repo

  3.更新 cache

    yum clean all

    yum makecache

  4.查看并更新 yum 源

    yum -y update

posted @ 2019-06-20 08:01  老凯—RGZN  阅读(719)  评论(0编辑  收藏  举报