最新修改CentOS源代码更新

系统 Linux
由于CentOS源代码更新,以CentOS5.3的上海交大更新源为例来进行讲解最新修改CentOS源代码更新,应该修改的具体步骤。

针对CentOS源代码更新的问题,有很多版本的修改方法,根据最近的CentOS源代码更新,我们以CentOS5.3的上海交大更新源为例来进行讲解。

1.CentOS源代码修改/etc/yum.repos.d/CentOS-Base.repo为:

  1. base]  
  2. name=CentOS-5-Base  
  3. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&  
  4. repo=os 
  5. #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/  
  6. baseurl=http://ftp.sjtu.edu.cn/centos/5.3/os/$basearch/  
  7. gpgcheck=1 
  8. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5  
  9.  
  10. #releasedupdates  
  11. [update]  
  12. name=CentOS-5-Updates  
  13. #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates 
  14. baseurl=http://ftp.sjtu.edu.cn/centos/5.3/updates/$basearch/  
  15. gpgcheck=1 
  16. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5  
  17.  
  18. #packagesused/producedinthebuildbutnotreleased  
  19. [addons]  
  20. name=CentOS-***ddons  
  21. #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons 
  22.  
  23. baseurl=http://ftp.sjtu.edu.cn/centos/5.3/addons/$basearch/  
  24. gpgcheck=1 
  25. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5  
  26.  
  27. #additionalpackagesthatmaybeuseful  
  28. [extras]  
  29. name=CentOS-5-Extras  
  30. #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras 
  31.  
  32. baseurl=http://ftp.sjtu.edu.cn/centos/5.3/extras/$basearch/  
  33. gpgcheck=1 
  34. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5  
  35.  
  36. #additionalpackagesthatextendfunctionalityofexistingpackages  
  37. [centosplus]  
  38. name=CentOS-5-Plus  
  39. #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus 
  40. baseurl=http://ftp.sjtu.edu.cn/centos/5.3/centosplus/$basearch/  
  41. gpgcheck=1 
  42. enabled=0 
  43. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5  
  44.  
  45. #contrib-packagesbyCentosUsers  
  46. [contrib]  
  47. name=CentOS-5-Contrib  
  48. #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib 
  49. baseurl=http://ftp.sjtu.edu.cn/centos/5.3/contrib/$basearch/  
  50. gpgcheck=1 
  51. enabled=0 
  52. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5  
  53.  

2.CentOS源代码校验Key导入:执行rpm --import http://ftp.sjtu.edu.cn/centos/5.3/os/i386/RPM-GPG-KEY-CentOS-5

3.CentOS源代码进行升级:执行yum update

好了,这样我们就完成了修改CentOS源代码更新。

【编辑推荐】

  1. 简单介绍CentOS安装
  2. 打造安全的CentOS服务器
  3. 如何对CentOS防火墙进行配置
  4. 解答CentOS配置常见问题
  5. 快速解决CentOS安装后的初始化问题
责任编辑:小霞
相关推荐

2010-03-29 17:38:18

CentOS源代码

2010-03-29 15:18:52

CentOS系统

2013-12-18 16:18:23

CentOShttpd源代码

2022-09-22 08:18:28

JavaAssistJboss开源

2020-11-13 13:05:27

Java开发代码

2010-04-16 08:37:38

Java 7Java 1.7性能测试

2019-05-21 14:40:03

美国GitHub代码

2009-04-03 08:28:39

2011-02-23 14:46:21

FileZilla

2023-03-27 18:22:05

2011-02-23 14:39:27

FileZilla

2011-02-23 14:16:43

FileZilla

2011-02-23 14:54:58

FileZilla

2020-11-14 11:20:56

渗透测试Cobalt Stri源代码

2021-03-12 14:06:03

谷歌代码开发

2011-05-26 14:17:16

Android 源代码

2010-03-12 14:28:45

Python if语句

2011-02-23 15:11:27

FileZilla

2011-02-23 15:33:42

FileZilla

2011-02-23 15:26:01

FileZilla
点赞
收藏

51CTO技术栈公众号