1、备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
3、生成缓存
yum makecache
wx584411d751930 博主文章分类:Z-Linux ©著作权
文章标签 CentOS8 换阿里源 CentOS 缓存 文章分类 Html/CSS 前端开发
1、备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
3、生成缓存
yum makecache
更换为阿里云的源
或手动创建编辑文件:/etc/yum.repos.d/CentOS-Base.repo。
CentOS7 更换阿里云镜像源
ubuntu 更换source源
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M