美文网首页
centos7修改为阿里的yum源

centos7修改为阿里的yum源

作者: 墨丘利lh | 来源:发表于2018-11-26 22:58 被阅读0次

    以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

    相关文章

      网友评论

          本文标题:centos7修改为阿里的yum源

          本文链接:https://www.haomeiwen.com/subject/lhtwqqtx.html