Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2877375
  • 博文数量: 471
  • 博客积分: 10012
  • 博客等级: 上将
  • 技术积分: 5255
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-10 23:58
文章分类

全部博文(471)

文章存档

2011年(3)

2010年(61)

2009年(52)

2008年(212)

2007年(69)

2006年(74)

我的朋友

分类: LINUX

2010-05-20 12:01:06

国内速度最快的centos5.4 yum(更新源)

文章分类:操作系统

第一步:修改/etc/yum.repos.d/CentOS- Base.repo为:

Code代码 复制代码
  1. [base]    
  2. name=CentOS-5 - Base    
  3. #mirrorlist=   
  4. repo=os    
  5. #baseurl=   
  6. baseurl=5.4/os/$basearch/    
  7. gpgcheck=1    
  8. gpgkey=   
  9.   
  10. #released updates    
  11. [update]    
  12. name=CentOS-5 - Updates    
  13. #mirrorlist=4&arch=$basearch&repo=updates    
  14. baseurl=5.4/updates/$basearch/    
  15. gpgcheck=1    
  16. gpgkey=   
  17.   
  18. #packages used/produced in the build but not released    
  19. [addons]    
  20. name=CentOS-5 - Addons    
  21. #mirrorlist=4&arch=$basearch&repo=addons   
  22.   
  23. baseurl=5.4/addons/$basearch/    
  24. gpgcheck=1    
  25. gpgkey=   
  26.   
  27. #additional packages that may be useful    
  28. [extras]    
  29. name=CentOS-5 - Extras    
  30. #mirrorlist=4&arch=$basearch&repo=extras   
  31.   
  32. baseurl=5.4/extras/$basearch/    
  33. gpgcheck=1    
  34. gpgkey=   
  35.   
  36. #additional packages that extend functionality of existing packages    
  37. [centosplus]    
  38. name=CentOS-5 - Plus    
  39. #mirrorlist=4&arch=$basearch&repo=centosplus    
  40. baseurl=5.4/centosplus/$basearch/    
  41. gpgcheck=1    
  42. enabled=0    
  43. gpgkey=   
  44.   
  45. #contrib - packages by Centos Users    
  46. [contrib]    
  47. name=CentOS-5 - Contrib    
  48. #mirrorlist=4&arch=$basearch&repo=contrib    
  49. baseurl=5.4/contrib/$basearch/    
  50. gpgcheck=1    
  51. enabled=0    
  52. gpgkey=  

 


第二步:64位: rpm --import
32位: rpm --import
第三步:yum update

阅读(1229) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~