Centos7 wget 更换阿里源

  • 安装wget
    • yum install -y wget

       

  • 备份之前的源
    • mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

       

  • 下载阿里源
    • wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

       

  • 清理缓存
    • yum clean all

       

  • 刷新缓存
    • yum makecache

       

  • 更新最新源设置
    • yum update -y

       

 
posted @ 2020-09-10 16:27  手可摘星辰/*  阅读(3402)  评论(0编辑  收藏  举报