日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

centos国内yum源

發(fā)布時(shí)間:2025/3/18 编程问答 62 豆豆
生活随笔 收集整理的這篇文章主要介紹了 centos国内yum源 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

網(wǎng)易(163)yum源是國(guó)內(nèi)最好的yum源之一 ,無(wú)論是速度還是軟件版本,都非常的不錯(cuò),將yum源設(shè)置為163yum,可以提升軟件包安裝和更新的速度,同時(shí)避免一些常見(jiàn)軟件版本無(wú)法找到。V9zz的云主機(jī)就將yum源設(shè)置為163的yum,具體設(shè)置方法如下:

1,進(jìn)入yum源配置目錄
cd /etc/yum.repos.d

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

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

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

理論上講,這些yum源redhat系統(tǒng)以及fedora也是可以用 的,但是沒(méi)有經(jīng)過(guò)測(cè)試,需要的站長(zhǎng)可以自己測(cè)試一下。



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











    本文轉(zhuǎn)自 南非波波 51CTO博客,原文鏈接:http://blog.51cto.com/nanfeibobo/1613116,如需轉(zhuǎn)載請(qǐng)自行聯(lián)系原作者 與50位技術(shù)專(zhuān)家面對(duì)面20年技術(shù)見(jiàn)證,附贈(zèng)技術(shù)全景圖

    總結(jié)

    以上是生活随笔為你收集整理的centos国内yum源的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

    如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。