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

       


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM