• Blog
  • Archives
  • Search
  • Comments
  • Tags
  • Links
  • xxshuo
  • RSS

有梦就有快乐[杨恒飞]

Reg | Login

人生旅途慢慢,但有梦就会有快乐!

感谢阅读
CentOS yum 更新 搜狐源(mirrors.sohu.com)
By coldstar On 2009-12-15, 5:35 PM | Category: Linux | Comments: 0

如果你安装了CentOS系统,并且yum更新慢的话,可以考虑将更新源更换为 网易提供的源:mirrors.sohu.com

具体操作如下:

cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.bak

vi 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.   
  14. [base]    
  15. name=CentOS-$releasever - Base   
  16. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os   
  17. #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/    
  18. baseurl=http://mirrors.sohu.com/centos/$releasever/os/$basearch/    
  19. gpgcheck=1    
  20. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5   
  21.  
  22. #released updates       
  23. [updates]    
  24. name=CentOS-$releasever - Updates   
  25. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates   
  26. #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/    
  27. baseurl=http://mirrors.sohu.com/centos/$releasever/updates/$basearch/    
  28. gpgcheck=1    
  29. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5   
  30.  
  31. #packages used/produced in the build but not released    
  32. [addons]    
  33. name=CentOS-$releasever - Addons   
  34. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons   
  35. #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/    
  36. baseurl=http://mirrors.sohu.com/centos/$releasever/addons/$basearch/    
  37. gpgcheck=1    
  38. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5   
  39.  
  40. #additional packages that may be useful    
  41. [extras]    
  42. name=CentOS-$releasever - Extras   
  43. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras   
  44. #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/    
  45. baseurl=http://mirrors.sohu.com/centos/$releasever/extras/$basearch/    
  46. gpgcheck=1    
  47. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5   
  48.  
  49. #additional packages that extend functionality of existing packages    
  50. [centosplus]    
  51. name=CentOS-$releasever - Plus   
  52. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus   
  53. #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/    
  54. baseurl=http://mirrors.sohu.com/centos/$releasever/centosplus/$basearch/    
  55. gpgcheck=1    
  56. enabled=0    
  57. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5  
Tags: 搜狐 , yum
« CentOS yum 更新 网易源(mirrors.163.com) Windows 7磁盘加密技术BitLocker被破解»
只显示10条记录相关文章
linux 命令行下安装图型界面
linux yum命令详解
CentOS yum 更新 网易源(mirrors.163.com)
Trackbacks
点击获得Trackback地址,Encode: UTF-8 点击获得Trackback地址,Encode: GB2312 or GBK 点击获得Trackback地址,Encode: BIG5
Leave a Comment

text(*):

  • View Model: Nomal | List
  • Category

    nginx (28)

    win7 (20)

    Windows (39)

    Linux (51)

    WEB服务器 (73)

    网站架构 (11)

    存储与缓存 (2)

    数据库技术 (20)

    WEB开发 (24)

    网站建设 (30)

    安全相关 (27)

    软件开发 (3)

    网络观察 (20)

    精彩瞬间 (20)

    心情管理 (49)

    个人收藏 (29)

  • Calendar

    « 2010年09月 »
    日 一 二 三 四 五 六
    1 2 3 4
    5 6 7 8 9 10 11
    12 13 14 15 16 17 18
    19 20 21 22 23 24 25
    26 27 28 29 30
  • Random Aritcle

    linux uniq命令小结

    VMware7精简版 桥接功能无法使用

    网游公司的赚钱模式原来是这样一个故事

    /bin/rm: cannot remove `libtoolT': No such file or directory

    [转]关于C语言学习的一些个人看法

    百度,今天你HI了没有?

    恢复不见了的IE桌面图标小窍门

    使用chkrootkit工具检查linux是否被攻入

    IIS的最常见问题

    利用dedecms漏洞 自定义模版oday 成功上传webshell

  • Archives

    2010年08月 (13)

    2010年07月 (17)

    2010年06月 (68)

    2010年05月 (32)

    2010年04月 (3)

    2010年03月 (8)

    2010年02月 (4)

    2010年01月 (19)

    2009年12月 (45)

    2009年11月 (28)

    2009年10月 (10)

    2009年09月 (15)

    更多...

  • Others

    Powered by SaBlog-X.

    Designed by Giki+Kula.

    有梦就有快乐[杨恒飞] All rights reserved.

    陕ICP备07009322号