最近在玩linux时 yum 遇到了问题

主要是软件源出现了问题

我做的方式可能比较粗暴

ls -l /etc/yum.repos.d/       /*查看软件源*/

rm -rf /etc/yum.repos.d/   /*全删了*/

mkdir /etc/yum.repos.d/  /*新建*/

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo  /**/

yum makecache

 

ok!

posted @ 2016-12-19 22:13  赵雪如  阅读(214)  评论(0编辑  收藏  举报