赞
踩
备份
mv /etc/yum.repos.d/CentOS-Linux-Base.repo /etc/yum.repos.d/CentOS-Linux-Base.repo.backup
下载新的 CentOS-Linux-Base.repo 到 /etc/yum.repos.d/
CentOS 8
- wget -O /etc/yum.repos.d/CentOS-Linux-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
- 或者
-
- curl -o /etc/yum.repos.d/CentOS-Linux-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
运行 yum makecache 生成缓存
yum makecache
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。