摘要由 AI 智能生成
1、备份系统自带yum源配置文件
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.back2、通过curl下载yum源,需要服务器可以联网
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo3、运行yum makecache生成缓存
yum makecache4、更新yum源
yum -y update5、安装wget
yum install -y wget
