真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

如何安裝aarch64的centos的yum源

小編給大家分享一下如何安裝aarch64的centos的yum源,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!

專注于為中小企業(yè)提供成都做網(wǎng)站、成都網(wǎng)站制作服務(wù),電腦端+手機(jī)端+微信端的三站合一,更高效的管理,為中小企業(yè)長(zhǎng)清免費(fèi)做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動(dòng)了千余家企業(yè)的穩(wěn)健成長(zhǎng),幫助中小企業(yè)通過(guò)網(wǎng)站建設(shè)實(shí)現(xiàn)規(guī)模擴(kuò)充和轉(zhuǎn)變。

  1. 沒(méi)網(wǎng)

    先進(jìn)行斷網(wǎng)檢測(cè),發(fā)現(xiàn)DNS沒(méi)有配置對(duì)

  2. 配置DNS

    修改/etc/resolv.conf

    # Generated by NetworkManager
    nameserver 114.114.114.114
    # 建議查自己使用的DNS服務(wù)器

  3. 更新yum

    發(fā)現(xiàn)總是報(bào)錯(cuò)

    Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
     

    用瀏覽器可以訪問(wèn),提示網(wǎng)址http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock查看了一下。獲取到

    http://mirrors.huaweicloud.com/centos-altarch/7.8.2003/os/aarch74/
    http://mirrors.bfsu.edu.cn/centos-altarch/7.8.2003/os/aarch74/
    http://mirror.xtom.com.hk/centos-altarch/7.8.2003/os/aarch74/
    http://mirror.worria.com/centos-altarch/7.8.2003/os/aarch74/
    http://mirror-hk.koddos.net/centos-altarch/7.8.2003/os/aarch74/
    http://mirror.aktkn.sg/centos-altarch/7.8.2003/os/aarch74/
    http://ftp.yz.yamagata-u.ac.jp/pub/linux/centos-altarch/7.8.2003/os/aarch74/
    http://mirrors.powernet.com.ru/centos-altarch/7.8.2003/os/aarch74/
    http://mirror.hoster.kz/centos-altarch/7.8.2003/os/aarch74/
    http://centosx4.centos.org/altarch/7.8.2003/os/aarch74/
     

    然后就設(shè)置了華為的源。清華源也可以。用的是altarch。

    # 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.huaweicloud.com
    failovermethod=priority
    baseurl=http://mirrors.huaweicloud.com/centos-altarch/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=http://mirrors.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
    
    #released updates
    [updates]
    name=CentOS-$releasever - Updates - mirrors.huaweicloud.com
    failovermethod=priority
    baseurl=http://mirrors.huaweicloud.com/centos-altarch/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=http://mirrors.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
    
    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras - mirrors.huaweicloud.com
    failovermethod=priority
    baseurl=http://mirrors.huaweicloud.com/centos-altarch/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=http://mirrors.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
    
    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-$releasever - Plus - mirrors.huaweicloud.com
    failovermethod=priority
    baseurl=http://mirrors.huaweicloud.com/centos-altarch/$releasever/centosplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirrors.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
    
    #contrib - packages by Centos Users
    [contrib]
    name=CentOS-$releasever - Contrib - mirrors.huaweicloud.com
    failovermethod=priority
    baseurl=http://mirrors.huaweicloud.com/centos-altarch/$releasever/contrib/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirrors.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7

  4. 最后

    清理并更新

    yum clean all
    yum makecache
    yum update

  5. 指令修改

     sed -i -E -e 's;^mirrorlist=;#mirrorlist=;' -e 's;^ *# *baseurl=http://mirror.centos.org/altarch/;baseurl=http://mirrors.huaweicloud.com/centos-altarch/;' /etc/yum.repos.d/*.repo

以上是“如何安裝aarch64的centos的yum源”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!


本文名稱:如何安裝aarch64的centos的yum源
鏈接URL:http://weahome.cn/article/jjpohp.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部