• 北京交大yum


    [base]
    
    name=CentOS-$releasever - Base
    
    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
    
    baseurl=http://mirror.bjtu.edu.cn/centos/$releasever/os/$basearch/
    
    gpgcheck=1
    
    gpgkey=http://mirror.bjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-6
    
    
    
    #released updates
    
    [updates]
    
    name=CentOS-$releasever - Updates
    
    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
    
    baseurl=http://mirror.bjtu.edu.cn/centos/$releasever/updates/$basearch/
    
    gpgcheck=1
    
    gpgkey=http://mirror.bjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-6
    
    
    
    #additional packages that may be useful
    
    [extras]
    name=CentOS-$releasever - Extras
    
    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
    
    baseurl=http://mirror.bjtu.edu.cn/centos/$releasever/extras/$basearch/
    
    gpgcheck=1
    
    gpgkey=http://mirror.bjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-6
    
    
    
    #additional packages that extend functionality of existing packages
    [centosplus]
    
    name=CentOS-$releasever - Plus
    
    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
    
    baseurl=http://mirror.bjtu.edu.cn/centos/$releasever/centosplus/$basearch/
    
    gpgcheck=1
    
    enabled=0
    
    gpgkey=http://mirror.bjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-6
    #contrib - packages by Centos Users
    
    [contrib]
    
    name=CentOS-$releasever - Contrib
    
    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib&infra=$infra
    
    baseurl=http://mirror.bjtu.edu.cn/centos/$releasever/contrib/$basearch/
    
    gpgcheck=1
    
    enabled=0
    
    gpgkey=http://mirror.bjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-6

    在/etc/yum.repos.d/CentOS-Base.repo,文件中修改,注意拷贝一份,以防万一

    校验Key导入:rpm --import http://mirror.bjtu.edu.cn/centos/6.7/os/x86_64/RPM-GPG-KEY-CentOS-6

    更新:yum update 

  • 相关阅读:
    容器与开发语言
    支持千分符的自定义组件input
    “头脑风暴”五原则
    input组件中实时转换数据值为千位符格式的策略
    input组件中将数据值转成含有千位符格式的策略
    package.json文件中semver说明
    用户行为分析流程
    中年危机
    FAST LOW-RANK APPROXIMATION FOR COVARIANCE MATRICES
    线性方程组求解
  • 原文地址:https://www.cnblogs.com/vincent4code/p/5042620.html
Copyright © 2020-2023  润新知