zoukankan      html  css  js  c++  java
  • 01_Linux软件源配置

     

    一、国内软件源

    1. 阿里源:https://mirrors.aliyun.com/
    2. 清华大学:https://mirrors.tuna.tsinghua.edu.cn/
    3. 中科大 : https://mirrors.ustc.edu.cn/

    有很多,大家可以百度。

    二、以Centos 6.7为例配置

    1.备份系统默认的源配置

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

    2.进入阿里源官网

    3.下载新的CentOS-Base.repo到/etc/yum.repos.d/

    CentOS 5

    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo

    curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo 

    CentOS 6

    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo 

    curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo 

    CentOS 7

    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 

    curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

     三、生成yum缓存

    yum makecache
  • 相关阅读:
    Php compiler for .NET framework
    C++ Virtual Inheritance Memory Layout
    MIT公开课汉化
    OpenGL like Vulkan
    C++ Chrono Timer
    VisTools: C++模仿Java体系
    Lua IDE
    PHP调试
    Decoda
    JSRDB
  • 原文地址:https://www.cnblogs.com/weihengblog/p/8321672.html
Copyright © 2011-2022 走看看