backup2007

          導航

          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          統計

          公告

          @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);


          常用鏈接

          留言簿(1)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          設置centos5 yum源[quote]

          1.修改/etc/yum.repos.d/CentOS-Base.repo為:

          [base] 
          name
          =CentOS-5 - Base 
          #mirrorlist
          =http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch& 
          repo=os 
          #baseurl
          =http://mirror.centos.org/centos/$releasever/os/$basearch/ 
          baseurl=http://ftp.sjtu.edu.cn/centos/5.0/os/$basearch/ 
          gpgcheck=1 
          gpgkey
          =http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 

          #released updates 
          [update] 
          name
          =CentOS-5 - Updates 
          #mirrorlist
          =http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates 
          baseurl=http://ftp.sjtu.edu.cn/centos/5.0/updates/$basearch/ 
          gpgcheck=1 
          gpgkey
          =http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 

          #packages used
          /produced in the build but not released 
          [addons] 
          name
          =CentOS-5 - Addons 
          #mirrorlist
          =http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons 

          baseurl
          =http://ftp.sjtu.edu.cn/centos/5.0/addons/$basearch/ 
          gpgcheck=1 
          gpgkey
          =http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 

          #additional packages that may be useful 
          [extras] 
          name
          =CentOS-5 - Extras 
          #mirrorlist
          =http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras 

          baseurl
          =http://ftp.sjtu.edu.cn/centos/5.0/extras/$basearch/ 
          gpgcheck=1 
          gpgkey
          =http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 

          #additional packages that extend functionality of existing packages 
          [centosplus] 
          name
          =CentOS-5 - Plus 
          #mirrorlist
          =http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus 
          baseurl=http://ftp.sjtu.edu.cn/centos/5.0/centosplus/$basearch/ 
          gpgcheck=1 
          enabled
          =0 
          gpgkey
          =http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 

          #contrib 
          - packages by Centos Users 
          [contrib] 
          name
          =CentOS-5 - Contrib 
          #mirrorlist
          =http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib 
          baseurl=http://ftp.sjtu.edu.cn/centos/5.0/contrib/$basearch/ 
          gpgcheck=1 
          enabled
          =0 
          gpgkey
          =http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 

           

          2.執行:

          64位:

          rpm --import http://ftp.sjtu.edu.cn/centos/5.0/os/x86_64/RPM-GPG-KEY-CentOS-5

          32位:

          rpm --import http://ftp.sjtu.edu.cn/centos/5.0/os/i386/RPM-GPG-KEY-CentOS-5

          3.執行

          yum update

          posted on 2007-09-15 10:04 backup2007 閱讀(741) 評論(0)  編輯  收藏 所屬分類: CentOS Study

          主站蜘蛛池模板: 建瓯市| 苏尼特左旗| 雷州市| 晴隆县| 革吉县| 宜宾县| 垦利县| 福海县| 汨罗市| 花莲市| 馆陶县| 连江县| 兖州市| 呈贡县| 拉萨市| 忻州市| 电白县| 辰溪县| 佛山市| 霍山县| 瓦房店市| 兴国县| 武夷山市| 鄂伦春自治旗| 溧阳市| 宜阳县| 阿巴嘎旗| 静宁县| 鲁山县| SHOW| 沂水县| 兴安盟| 布拖县| 铜山县| 新田县| 八宿县| 湾仔区| 法库县| 临安市| 高唐县| 兴宁市|