yum 的使用是很方便的,可能出现的问题就是源的下载速度不理想,所以需要更换。它的配置文件在 /etc/yum.conf,源列表在 /etc/yum.repos.d。
备份mv base.repo baserepo.repo.backup
wget -o base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
或http://mirrors.aliyun.com/repo/Centos-6.repo
最后
yum clean all, yum makecache,输入这两个命令