Skip to content

CentOS 配置 163 repo yum 源

官方文档

http://mirrors.163.com/.help/centos.html

步骤

bash
# 首先备份/etc/yum.repos.d/CentOS-Base.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

##CentOS 7最小安装没有 wget 命令, 可以使用 curl 下载
curl http://mirrors.163.com/.help/CentOS7-Base-163.repo -o /etc/yum.repos.d/CentOS-Base.repo

yum clean all && yum makecache

# 检查是否安装成功
yum repolist