LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 9791|回复: 19

使用163开源镜像升级你的Centos

[复制链接]
发表于 2009-2-5 20:25:38 | 显示全部楼层 |阅读模式
由于我的yum升级速度一直不太理想,今天发现163提供了centos的开源镜像,在此首先感谢163对国内开源事业的贡献。

  1. #cd /etc/yum.repos.d/
  2. #cp -a CentOS-Base.repo CentOS-Base.repo.bak
  3. #vim CentOS-Base.repo
复制代码

CentOS-Base.repo内容如下

  1. # CentOS-Base.repo
  2. #
  3. # This file uses a new mirrorlist system developed by Lance Davis for CentOS.
  4. # The mirror system uses the connecting IP address of the client and the
  5. # update status of each mirror to pick mirrors that are updated to and
  6. # geographically close to the client.  You should use this for CentOS updates
  7. # unless you are manually picking other mirrors.
  8. #
  9. # If the mirrorlist= does not work for you, as a fall back you can try the
  10. # remarked out baseurl= line instead.
  11. #
  12. #

  13. [base]
  14. name=CentOS-$releasever - Base
  15. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
  16. #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
  17. baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/
  18. gpgcheck=1
  19. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  20. #released updates
  21. [updates]
  22. name=CentOS-$releasever - Updates
  23. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
  24. #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
  25. baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/
  26. gpgcheck=1
  27. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  28. #packages used/produced in the build but not released
  29. [addons]
  30. name=CentOS-$releasever - Addons
  31. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
  32. #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
  33. baseurl=http://mirrors.163.com/centos/$releasever/addons/$basearch/
  34. gpgcheck=1
  35. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  36. #additional packages that may be useful
  37. [extras]
  38. name=CentOS-$releasever - Extras
  39. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
  40. #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
  41. baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/
  42. gpgcheck=1
  43. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  44. #additional packages that extend functionality of existing packages
  45. [centosplus]
  46. name=CentOS-$releasever - Plus
  47. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
  48. #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
  49. baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/
  50. gpgcheck=1
  51. enabled=0
  52. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
复制代码


yum速度很快!大家可以试试。
发表于 2009-2-5 20:45:54 | 显示全部楼层
Post by dogking;1944265
由于我的yum升级速度一直不太理想,今天发现163提供了centos的开源镜像,在此首先感谢163对国内开源事业的贡献。

  1. #cd /etc/yum.repos.d/
  2. #cp -a CentOS-Base.repo CentOS-Base.repo.bak
  3. #vim CentOS-Base.repo
复制代码

CentOS-Base.repo内容如下

  1. # CentOS-Base.repo
  2. #
  3. # This file uses a new mirrorlist system developed by Lance Davis for CentOS.
  4. # The mirror system uses the connecting IP address of the client and the
  5. # update status of each mirror to pick mirrors that are updated to and
  6. # geographically close to the client.  You should use this for CentOS updates
  7. # unless you are manually picking other mirrors.
  8. #
  9. # If the mirrorlist= does not work for you, as a fall back you can try the
  10. # remarked out baseurl= line instead.
  11. #
  12. #

  13. [base]
  14. name=CentOS-$releasever - Base
  15. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
  16. #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
  17. baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/
  18. gpgcheck=1
  19. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  20. #released updates
  21. [updates]
  22. name=CentOS-$releasever - Updates
  23. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
  24. #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
  25. baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/
  26. gpgcheck=1
  27. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  28. #packages used/produced in the build but not released
  29. [addons]
  30. name=CentOS-$releasever - Addons
  31. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
  32. #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
  33. baseurl=http://mirrors.163.com/centos/$releasever/addons/$basearch/
  34. gpgcheck=1
  35. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  36. #additional packages that may be useful
  37. [extras]
  38. name=CentOS-$releasever - Extras
  39. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
  40. #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
  41. baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/
  42. gpgcheck=1
  43. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  44. #additional packages that extend functionality of existing packages
  45. [centosplus]
  46. name=CentOS-$releasever - Plus
  47. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
  48. #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
  49. baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/
  50. gpgcheck=1
  51. enabled=0
  52. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
复制代码


yum速度很快!大家可以试试。


我虽然没有用centos,用的F10,还是谢谢你,好人一个!
回复 支持 反对

使用道具 举报

发表于 2009-2-5 23:40:40 | 显示全部楼层
不错,我用上了。
回复 支持 反对

使用道具 举报

发表于 2009-2-6 09:42:49 | 显示全部楼层
我也用上了,速度真的飞快哦。
回复 支持 反对

使用道具 举报

发表于 2009-2-6 19:46:59 | 显示全部楼层
网易开源镜像将长期提供服务 http://www.tagidea.com/show/59.html
回复 支持 反对

使用道具 举报

发表于 2009-2-7 00:24:53 | 显示全部楼层
没有fedora.........哭ing
回复 支持 反对

使用道具 举报

发表于 2009-2-7 01:32:59 | 显示全部楼层
难道我要转行到CentOS了?
回复 支持 反对

使用道具 举报

发表于 2009-2-7 17:20:12 | 显示全部楼层
我用fedora的,哭
回复 支持 反对

使用道具 举报

发表于 2009-2-7 21:00:51 | 显示全部楼层
网易办了件好事,已经用上了!
回复 支持 反对

使用道具 举报

发表于 2009-2-11 11:46:43 | 显示全部楼层
Post by jiwasun;1944801
我用fedora的,哭


既然有目录,相 信不久会与官方源同步的。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表