CentOS8更改yum源为阿里云
CentOS 8修改yum源为阿里云
1. 备份原始的yum源
1 | cd /etc/yum.repos.d |
2. 下载对应版本的repo文件
1 | wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo |
3. 清除旧的yum缓存并生成新的yum缓存
1 | yum clean all |
4. 更新
1 | yum update -y |
CentOS8更改yum源为阿里云
CentOS 8修改yum源为阿里云
1 | cd /etc/yum.repos.d |
1 | wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo |
1 | yum clean all |
1 | yum update -y |
CentOS8更改yum源为阿里云