centos8换国内yum源
本文讲述centos8换国内yum源的最快步骤 本文搬运于林清的博客园中的一篇笔记文章
进入root,切换至yum.repos.d目录
cd /etc/yum.repos.d/
创建新文件夹并将源文件备份为repo.bak
mkdir backup && mv *repo backup/
下载国内yum源文件
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
更新下载yum源地址
sed -i -e"s|mirrors.cloud.aliyuncs.com|mirrors.aliyun.com|g " /etc/yum.repos.d/CentOS-* sed -i -e "s|releasever|releasever-stream|g" /etc/yum.repos.d/CentOS-*
生成缓存
yum clean all && yum makecache
本文作者:Dageling003
本文链接:
版权声明:本文来自博客园,作者:林清|Julien