Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1018544
  • 博文数量: 297
  • 博客积分: 11721
  • 博客等级: 上将
  • 技术积分: 3431
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-25 10:21
文章分类

全部博文(297)

文章存档

2016年(9)

2011年(71)

2010年(137)

2009年(80)

分类: LINUX

2010-05-26 13:30:04

第一步:修改/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

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