zoukankan      html  css  js  c++  java
  • 树莓派(CentOS7.8)配置国内源

    树莓派(CentOS7.8)配置国内源

    #创建repo文件夹并将repo移到文件夹中
    mkdir /etc/yum.repos.d/repo && mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/repo
    #将树莓派平台的源拷贝出来
    cp /etc/yum.repos.d/repo/CentOS-Vault.repo /etc/yum.repos.d/
    vi /etc/yum.repos.d/repo/CentOS-Vault.repo
    #结尾加入如下内容
    
    # C7.8.2003
    [C7.8.2003-base]
    name=CentOS-7.8.2003 - Base
    baseurl=https://mirrors.bfsu.edu.cn/centos-altarch/7.8.2003/os/$basearch/
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
           file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-7-Arm32
    enabled=1
    
    [C7.8.2003-updates]
    name=CentOS-7.8.2003 - Updates
    baseurl=https://mirrors.bfsu.edu.cn/centos-altarch/7.8.2003/updates/$basearch/
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
           file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-7-Arm32
    enabled=1
    
    [C7.8.2003-extras]
    name=CentOS-7.8.2003 - Extras
    baseurl=https://mirrors.bfsu.edu.cn/centos-altarch/7.8.2003/extras/$basearch/
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
           file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-7-Arm32
    enabled=1
    
    [C7.8.2003-centosplus]
    name=CentOS-7.8.2003 - CentOSPlus
    baseurl=https://mirrors.bfsu.edu.cn/centos-altarch/7.8.2003/centosplus/$basearch/
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
           file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-7-Arm32
    enabled=1
    
    [C7.8.2003-fasttrack]
    name=CentOS-7.8.2003 - Fasttrack
    baseurl=https://mirrors.bfsu.edu.cn/centos-altarch/7.8.2003/fasttrack/$basearch/
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
           file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-7-Arm32
    enabled=1
    
     yum clean all
     yum makecache
    

    epel源

    vi /etc/yum.repos.d/epel.repo
    
    [base]
    name=epel
    baseurl=http://mirror.centos.org/altarch/7/os/armhfp/
    enabled=0
    gpgcheck=0
    cost=2000
    [updates]
    name=epel
    baseurl=http://mirror.centos.org/altarch/7/updates/armhfp/
    enabled=0
    gpgcheck=0
    cost=2000
    
  • 相关阅读:
    设计模式笔记——策略模式(Strategy Pattern)
    C#基础笔记——集合和LINQ
    C#基础笔记——命名规范
    C#基础笔记——语言基础
    C#基础笔记——代码整洁
    C#基础笔记——序列化(Serialize)和反序列化(NonSerialize)
    C#基础笔记——资源管理
    C#基础笔记——协变(Covariance)和逆变(Contravariance)
    C#基础笔记——委托(Delegate)和事件(Event)
    C#基础笔记——泛型(Genericity)
  • 原文地址:https://www.cnblogs.com/Masquer/p/13910224.html
Copyright © 2011-2022 走看看