2020-12-224 年前发表 yhan219 学习几秒读完 (大约81个字)1779次访问CentOS8更改yum源为阿里云CentOS 8修改yum源为阿里云 1. 备份原始的yum源12cd /etc/yum.repos.dcp CentOS-Base.repo CentOS-Base.repo.back 2. 下载对应版本的repo文件1wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo 3. 清除旧的yum缓存并生成新的yum缓存12yum clean allyum makecache 4. 更新1yum update -y CentOS8更改yum源为阿里云https://blog.yhan219.com/centos8-yum-repo/作者yhan219发布于2020-12-22更新于2020-12-22许可协议 centos