云yum仓库配置

 首先装给wget

yum -y  install  wget

进入yum目录 : cd /etc/yum.repos.d

将大M文件移到bak目录内

wget -O /etc/yum.repos.d/aliyun.repo   http://mirrors.aliyun.com/repo/epel-6.repo (阿里yum源)

wget -O /etc/yum.repos.d/163.repo  http://mirrors.163.com/.help/CentOS6-Base-163.repo (163的yum源)

清空缓存 : yum -y cleanall

重建缓存 : yum makecache

猜你喜欢

转载自www.cnblogs.com/lijianjie/p/9930007.html