zoukankan      html  css  js  c++  java
  • 中科大的软件源及其他

    cd /etc/yum.repos.d
    mv CentOS-Base.repo  CentOS-Base.repo.save
    wget http://centos.ustc.edu.cn/CentOS-Base.repo

    rpm –import http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5

     中科大源如下

    # CentOS-Base.repo
    #
    # This file uses a new mirrorlist system developed by Lance Davis for CentOS.
    # The mirror system uses the connecting IP address of the client and the
    # update status of each mirror to pick mirrors that are updated to and
    # geographically close to the client.  You should use this for CentOS updates
    # unless you are manually picking other mirrors.
    #
    # If the mirrorlist= does not work for you, as a fall back you can try the
    # remarked out baseurl= line instead.
    #
    #

    [base]
    name=CentOS-$releasever - Base
    #mirrorlist=http://centos.ustc.edu.cn/?release=$releasever&arch=$basearch&repo=os
    baseurl=http://centos.ustc.edu.cn/centos/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-centos4

    #released updates
    [update]
    name=CentOS-$releasever - Updates
    #mirrorlist=http://centos.ustc.edu.cn/?release=$releasever&arch=$basearch&repo=updates
    baseurl=http://centos.ustc.edu.cn/centos/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-centos4

    #packages used/produced in the build but not released
    [addons]
    name=CentOS-$releasever - Addons
    #mirrorlist=http://centos.ustc.edu.cn/?release=$releasever&arch=$basearch&repo=addons
    baseurl=http://centos.ustc.edu.cn/centos/$releasever/addons/$basearch/
    gpgcheck=1
    gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-centos4

    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    #mirrorlist=http://centos.ustc.edu.cn/?release=$releasever&arch=$basearch&repo=extras
    baseurl=http://centos.ustc.edu.cn/centos/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-centos4

    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-$releasever - Plus
    #mirrorlist=http://centos.ustc.edu.cn/?release=$releasever&arch=$basearch&repo=centosplus
    baseurl=http://centos.ustc.edu.cn/centos/$releasever/centosplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-centos4

    #contrib - packages by Centos Users
    [contrib]
    name=CentOS-$releasever - Contrib
    #mirrorlist=http://centos.ustc.edu.cn/?release=$releasever&arch=$basearch&repo=contrib
    baseurl=http://centos.ustc.edu.cn/centos/$releasever/contrib/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-centos4

    付另一个

    [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.3/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.3/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.3/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.3/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.3/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.3/contrib/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5


    2.执行:

    64位:

    中科大的软件源 (转) - 魑魅魍魉福 - 魑魅魍魉HOMErpm --import http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-5

    32位:

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

    原版

    # CentOS-Base.repo
    #
    # This file uses a new mirrorlist system developed by Lance Davis for CentOS.
    # The mirror system uses the connecting IP address of the client and the
    # update status of each mirror to pick mirrors that are updated to and
    # geographically close to the client.  You should use this for CentOS updates
    # unless you are manually picking other mirrors.
    #
    # If the mirrorlist= does not work for you, as a fall back you can try the
    # remarked out baseurl= line instead.
    #
    #

    [base]
    name=CentOS-$releasever - Base
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
    #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

    #released updates
    [updates]
    name=CentOS-$releasever - Updates
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
    #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

    #packages used/produced in the build but not released
    [addons]
    name=CentOS-$releasever - Addons
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
    #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
    #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-$releasever - Plus
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
    #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

    #contrib - packages by Centos Users
    [contrib]
    name=CentOS-$releasever - Contrib
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
    #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

    其他

    [base]
    name=CentOS-$releasever - Base
    baseurl=http://mirror.be10.com/centos/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos-5

    #released updates
    [update]
    name=CentOS-$releasever - Updates
    baseurl=http://mirror.be10.com/centos/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos-5

    #packages used/produced in the build but not released
    [addons]
    name=CentOS-$releasever - Addons
    baseurl=http://mirror.be10.com/centos/$releasever/addons/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos-5

    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    baseurl=http://mirror.be10.com/centos/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos-5

    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-$releasever - Plus
    baseurl=http://mirror.be10.com/centos/$releasever/centosplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos-5

    #contrib - packages by Centos Users
    [contrib]
    name=CentOS-$releasever - Contrib
    baseurl=http://mirror.be10.com/centos/$releasever/contrib/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos-5

    本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/CrackCell/archive/2007/07/03/1677417.aspx

  • 相关阅读:
    Power of Cryptography
    Radar Installation
    Emag eht htiw Em Pleh
    Help Me with the Game
    89. Gray Code
    87. Scramble String
    86. Partition List
    85. Maximal Rectangle
    84. Largest Rectangle in Histogram
    82. Remove Duplicates from Sorted List II
  • 原文地址:https://www.cnblogs.com/zhihaowang/p/10128735.html
Copyright © 2011-2022 走看看