1.备份原来的yum源 yum install wget -y mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2.设置yum源为阿里云 wget -O /etc/yum.repos.