国产宅男网站在线|亚洲A级性爱免费视频|亚洲中精品级在线|午夜福利AA毛

  • <dd id="gf5jf"><th id="gf5jf"></th></dd>

    <cite id="gf5jf"><label id="gf5jf"></label></cite>
  • <div id="gf5jf"><listing id="gf5jf"></listing></div>
    學習啦>學習電腦>操作系統(tǒng)>Linux教程>

    Linux CentOS6怎么換更新源

    時間: 春健736 分享

      平時在安裝或更新CentOS軟件時,yum方式是最簡單方便的,而系統(tǒng)默認到y(tǒng)um更新源地址不穩(wěn)定,所以需要對更新源地址進行修改,那么Linux CentOS 6怎么換更新源呢?今天學習啦小編與大家分享下Linux CentOS 6換更新源的具體操作步驟,有需要的朋友不妨了解下。

      Linux CentOS 6換更新源方法

      1.進入root。

      2.備份CentOS-Base.repo

      mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

      3.創(chuàng)建一個新的CentOS-Base.repo。

      vim CentOS-Base.repo

      4.直接復制,或輸入下列進去(注意:復制的話前面的‘#’號要注意是否有漏掉。)

      # 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 - mirrors.ustc.edu.cn

      baseurl=http://mirrors.ustc.edu.cn/centos/$releasever/os/$basearch/

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

      gpgcheck=1

      gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6

      #released updates

      [updates]

      name=CentOS-$releasever - Updates - mirrors.ustc.edu.cn

      baseurl=http://mirrors.ustc.edu.cn/centos/$releasever/updates/$basearch/

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

      gpgcheck=1

      gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6

      #additional packages that may be useful

      [extras]

      name=CentOS-$releasever - Extras - mirrors.ustc.edu.cn

      baseurl=http://mirrors.ustc.edu.cn/centos/$releasever/extras/$basearch/

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

      gpgcheck=1

      gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6

      #additional packages that extend functionality of existing packages

      [centosplus]

      name=CentOS-$releasever - Plus - mirrors.ustc.edu.cn

      baseurl=http://mirrors.ustc.edu.cn/centos/$releasever/centosplus/$basearch/

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

      gpgcheck=1

      enabled=0

      gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6

      #contrib - packages by Centos Users

      [contrib]

      name=CentOS-$releasever - Contrib - mirrors.ustc.edu.cn

      baseurl=http://mirrors.ustc.edu.cn/centos/$releasever/contrib/$basearch/

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

      gpgcheck=1

      enabled=0

      gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6

      5.保存:按'Shift'+';',再按'x',回車。

      6.替換CentOS-Base.repo。

      cp -f CentOS-Base.repo /etc/yum.repos.d

      出現(xiàn)是否覆蓋,按 y 回車。

      7.生成緩存。

      yum makecache

      8.刪除自己創(chuàng)建的CentOS-Base.repo。

      rm CentOS-Base.repo

    看過“Linux CentOS 6怎么換更新源”的人還看了:

    1.CentOS 6.6系統(tǒng)怎么安裝

    2.如何在CentOS系統(tǒng)中安裝搭建

    3.怎么安裝Ubuntu操作系統(tǒng)

    4.如何用u盤安裝linux系統(tǒng)

    5.用U盤怎么安裝Linux系統(tǒng)

    6.服務器上怎么安裝linux系統(tǒng)

    Linux CentOS6怎么換更新源

    平時在安裝或更新CentOS軟件時,yum方式是最簡單方便的,而系統(tǒng)默認到y(tǒng)um更新源地址不穩(wěn)定,所以需要對更新源地址進行修改,那么Linux CentOS 6怎么換更新源呢?今天學習啦小編與大家分享下Linux CentOS 6換更新源的具體操作步驟,有需要
    推薦度:
    點擊下載文檔文檔為doc格式

    精選文章

    • Kali2.0怎么替換APT更新源為國內(nèi)源
      Kali2.0怎么替換APT更新源為國內(nèi)源

      Kali官方推出了新的kali系統(tǒng)2.0版本,此次升級最大的特點就是系統(tǒng)界面的設計理念更加先進,那么大家知道Kali 2.0怎么替換APT更新源為國內(nèi)源嗎?今天學習啦

    • RHEL系統(tǒng)怎么替換軟件更新源
      RHEL系統(tǒng)怎么替換軟件更新源

      RHEL系統(tǒng)怎么替換軟件更新源?今天學習啦小編與大家分享下RHEL系統(tǒng)替換軟件更新源的具體操作步驟,有需要的朋友不妨了解下。 RHEL系統(tǒng)替換軟件更新源方

    • RHEL系統(tǒng)怎么恢復安裝光盤中的yum更新源
      RHEL系統(tǒng)怎么恢復安裝光盤中的yum更新源

      平時在安裝或更新CentOS軟件時,yum方式是最簡單方便的,那么大家知道RHEL系統(tǒng)怎么恢復安裝光盤中的yum更新源嗎?接下來大家跟著學習啦小編一起來了解一下

    • CentOS系統(tǒng)如何掛載光盤鏡像ISO文件
      CentOS系統(tǒng)如何掛載光盤鏡像ISO文件

      ..以前在Windows下經(jīng)常會使用這些ISO鏡像文件,我們可以用虛擬光驅來加載,那么大家知道CentOS系統(tǒng)如何掛載光盤鏡像ISO文件嗎?接下來大家跟著學習啦小編一

    917115