环境
centos7.9
步骤
- 安装wget
yum install -y wget
- 备份基础源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
- 下载阿里源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
- 清除及重建缓存
yum clean all && yum makecacheyum
5. 更新系统
yum update -y
不过貌似也就700多k的样子