GigsGigsCloud 教程 GigsGigsCloud 教程

  • GigsGigsCloud.com
  • GigsGigs.com
Home / 使用教程 / 如何更改yum源码至阿里云

如何更改yum源码至阿里云

3443 views Less than a minute 2

外国的网易的阿里的.经过比较我们发现还是阿里云的比较靠谱 现在教大家如何换YUM源,如果YUM源是好的也推荐更换一下,对系统有很大的提升

备份原始文件:

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

下载最新的源:

centos5下载:wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
centos6下载:wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
centos7下载:wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

更新缓存:

yum clean all
yum makecache
yum教程 使用教程

About MONSTER

View all posts by MONSTER →

Related Articles

  • 如何更新debian/ubuntu系统
  • 如何更新Centos系统
  • 如何挂载硬盘
  • 如何实现自动对对时
COPYRIGHT © GIGSGIGSCLOUD.COM GIGSGIGS.COM. 本站教程仅供参考,本站不提供任何技术支持, 也不负责任何有可能引起的问题,如遇问题请借助搜索引擎。