美文网首页
yum源配置阿里云源

yum源配置阿里云源

作者: iarchitect | 来源:发表于2018-12-07 11:42 被阅读0次
  1. 安装wget
    yum install -y wget
  2. 备份/etc/yum.repos.d/CentOS-Base.repo文件
    cd /etc/yum.repos.d/
    mv CentOS-Base.repo CentOS-Base.repo.back
  3. 下载阿里云的Centos-6.repo文件
    wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
  4. 重新加载yum
    yum clean all
    yum makecache

相关文章

网友评论

      本文标题:yum源配置阿里云源

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