日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

centos国内yum源

發布時間:2025/3/18 67 豆豆
生活随笔 收集整理的這篇文章主要介紹了 centos国内yum源 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

網易(163)yum源是國內最好的yum源之一 ,無論是速度還是軟件版本,都非常的不錯,將yum源設置為163yum,可以提升軟件包安裝和更新的速度,同時避免一些常見軟件版本無法找到。V9zz的云主機就將yum源設置為163的yum,具體設置方法如下:

1,進入yum源配置目錄
cd /etc/yum.repos.d

2,備份系統自帶的yum源
mv CentOS-Base.repo CentOS-Base.repo.bk
下載163網易的yum源:wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

3,更新玩yum源后,執行下邊命令更新yum配置,使操作立即生效
yum makecache

4,除了網易之外,國內還有其他不錯的yum源,比如中科大和搜狐的,大家可以根據自己需求下載
中科大的yum源:
wget?http://centos.ustc.edu.cn/CentOS-Base.repo
sohu的yum源
wget?http://mirrors.sohu.com/help/CentOS-Base-sohu.repo

理論上講,這些yum源redhat系統以及fedora也是可以用 的,但是沒有經過測試,需要的站長可以自己測試一下。



erpl yum源配置:

  • wget?http://mirrors.hustunique.com/epel/6/x86_64/epel-release-6-8.noarch.rpm???

  • wget?http://mirrors.hustunique.com/epel/RPM-GPG-KEY-EPEL-6???

  • rpm?--import?RPM-GPG-KEY-EPEL-6??

  • rpm?-ivh?epel-release-6-8.noarch.rpm ?


  • 附:centos6-163.repo

    # CentOS-Base.repo

    #

    # 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 - 163.com

    baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/

    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os

    gpgcheck=1

    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6


    #released updates?

    [updates]

    name=CentOS-$releasever - Updates - 163.com

    baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/

    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates

    gpgcheck=1

    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6


    #additional packages that may be useful

    [extras]

    name=CentOS-$releasever - Extras - 163.com

    baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/

    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras

    gpgcheck=1

    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6


    #additional packages that extend functionality of existing packages

    [centosplus]

    name=CentOS-$releasever - Plus - 163.com

    baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/

    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus

    gpgcheck=1

    enabled=0

    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6


    #contrib - packages by Centos Users

    [contrib]

    name=CentOS-$releasever - Contrib - 163.com

    baseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/

    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib

    gpgcheck=1

    enabled=0

    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6











    本文轉自 南非波波 51CTO博客,原文鏈接:http://blog.51cto.com/nanfeibobo/1613116,如需轉載請自行聯系原作者 與50位技術專家面對面20年技術見證,附贈技術全景圖

    總結

    以上是生活随笔為你收集整理的centos国内yum源的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。