Centos镜像源使用

  • x86_64
  • i386
  • 收录版本

    所有版本

    更新时间

    每24个小时更新


    使用说明

    1.备份

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

    2.下载新的 CentOS repo 到 /etc/yum.repos.d/

    CentOS 6
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.eflycloud.com/repo/centos6/CentOS-6-Base.repo

    CentOS 7
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.eflycloud.com/repo/centos7/CentOS-7-Base.repo

    CentOS 8
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.eflycloud.com/repo/centos8/CentOS-8-Base.repo
    wget -O /etc/yum.repos.d/CentOS-AppStream.repo http://mirrors.eflycloud.com/repo/centos8/CentOS-AppStream.repo

    运行以下命令

    yum clean all
    yum makecache

    对应版本源文件下载链接

  • centos6
  • centos7
  • centos8