linux redhat centos使用的yum源 – 21运维
通知: .-...

linux redhat centos使用的yum源

linux 21运维 3610浏览 0评论

2
中科大的yum源地址:http://centos.ustc.edu.cn/
网易的yum源地址:http://mirrors.163.com/
搜狐的yum源地址:http://mirrors.sohu.com/

centos默认的和以上的都还可以,现在比较流行使用阿里云的yum源并设置epel源,可以这样设置更为简单:

cd /etc/yum.repos.d/
mkdir repobak
mv ./*.repo repobak
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo  //注意这里是针对的6版本
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo  //注意这里是针对的6版本
yum clean all && yum makecache

转载请注明:21运维 » linux redhat centos使用的yum源

发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址