Chinaunix首页 | 论坛 | 博客
  • 博客访问: 471846
  • 博文数量: 145
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1139
  • 用 户 组: 普通用户
  • 注册时间: 2014-01-14 16:47
个人简介

路漫漫其修远兮,吾将上下而求索

文章分类

全部博文(145)

文章存档

2016年(10)

2015年(15)

2014年(120)

我的朋友

分类: LINUX

2014-01-15 11:01:40

1,先将原来的YUM源备份

点击(此处)折叠或打开

  1. #mv /etc/yum.conf /etc/yum.conf.bak
  2. #cp -a /etc/yum.repos.d /etc/yum.repos.d.bak
  3. #vim /etc/yum.conf
  4. [main]
  5.   cachedir=/var/cache/yum
  6.   debuglevel=2
  7.   logfile=/var/log/yum.log
  8.   pkgpolicy=newest
  9.   distroverpkg=redhat-release
  10.   tolerant=1
  11.   exactarch=1
  12.   obsoletes=1
  13.   # PUT YOUR REPOS HERE OR IN separate files named file.repo
  14.   # in /etc/yum.repos.d
  15. #cd /etc/yum.repos.d
  16. #rm -rf *
  17. #vim CentOS-Base.repo
  18. [base]
  19. name=centos-5 - Base
  20. baseurl=
  21. # the other site:
  22. # you can find more site in:
  23. enabled=1
  24. gpgcheck=1
  25. gpgkey=RPM-GPG-KEY-CentOS-5
  26. #released updates
  27. [update]
  28. name=CentOS-5 - Updates
  29. baseurl=
  30. gpgcheck=1
  31. gpgkey=RPM-GPG-KEY-CentOS-5
  32. #packages used/produced in the build but not released
  33. [addons]
  34. name=CentOS-5 - Addons
  35. baseurl=
  36. gpgcheck=1
  37. gpgkey=RPM-GPG-KEY-CentOS-5
  38. #additional packages that may be useful
  39. [extras]
  40. name=CentOS-5 - Extras
  41. baseurl=
  42. gpgcheck=1
  43. gpgkey=
  44. #additional packages that extend functionality of existing packages
  45. [centosplus]
  46. name=CentOS-5 - Plus
  47. baseurl=
  48. gpgcheck=1
  49. enabled=0
  50. gpgkey=RPM-GPG-KEY-CentOS-5
  51. #contrib - packages by Centos Users
  52. [contrib]
  53. name=CentOS-5 - Contrib
  54. baseurl=
  55. gpgcheck=1
  56. enabled=0
  57. gpgkey=RPM-GPG-KEY-CentOS-5
  58. #packages in testing
  59. [testing]
  60. name=CentOS-5 - Testing
  61. baseurl=
  62. gpgcheck=1
  63. enabled=0
  64. gpgkey=RPM-GPG-KEY-CentOS-5
保存即可
阅读(959) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~