1.备份原CentOS-Base.repo文件 shell mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2.下载并放置新的CentOS-Base.repo文件 对于CentOS 7,使用以下命令: shell wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 对于CentOS ...
1.首先备份下旧的yun源 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2.下载新的CentOS-Base.repo到/etc/yum.repos.d根据您系统的版本选择下载 Centos6 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo Centos7 wget ...