一,备份源文件: mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak 二、建立修改源文件 cd /etc/yum.repos.d/ vi CentOS-Base.repo 替换里面的CentOS-Base.repo # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update …