• 给 MSYS2 添加中科大的源


    最近一段时间不知怎么的,使用默认的 MSYS2 源升级软件或是安装新软件的特别的慢。所以就翻了翻国内的几个开源软件的镜像库,发现中科大的库里就有 MSYS2。所以就研究了一下,给 MSYS2 添加了中科大的源。

    简单的说 msys64etcpacman.d 目录下有三个文件。 
    mirrorlist.msys 
    mirrorlist.mingw64 
    mirrorlist.mingw32

    这三个文件记录了都有哪些源。下面把我添加之后的文件内容贴上来。 
    首先是 mirrorlist.msys:

    ##
    ## MSYS2 repository mirrorlist
    ##
    
    ## Primary
    ## msys2.org
    Server = http://mirrors.ustc.edu.cn/msys2/msys/$arch/
    Server = http://repo.msys2.org/msys/$arch
    Server = http://downloads.sourceforge.net/project/msys2/REPOS/MSYS2/$arch
    Server = http://www2.futureware.at/~nickoe/msys2-mirror/msys/$arch/


    mirrorlist.mingw64:

    ##
    ## 64-bit Mingw-w64 repository mirrorlist
    ##
    
    ## Primary
    ## msys2.org
    Server = http://mirrors.ustc.edu.cn/msys2/mingw/x86_64/
    Server = http://repo.msys2.org/mingw/x86_64
    Server = http://downloads.sourceforge.net/project/msys2/REPOS/MINGW/x86_64
    Server = http://www2.futureware.at/~nickoe/msys2-mirror/x86_64/
    Server = http://mirror.bit.edu.cn/msys2/REPOS/
    


    mirrorlist.mingw32:

    ##
    ## 32-bit Mingw-w64 repository mirrorlist
    ##
    
    ## Primary
    ## msys2.org
    Server = http://mirrors.ustc.edu.cn/msys2/mingw/i686/
    Server = http://repo.msys2.org/mingw/i686
    Server = http://downloads.sourceforge.net/project/msys2/REPOS/MINGW/i686
    Server = http://www2.futureware.at/~nickoe/msys2-mirror/i686/
    


    至此,中科大的源就添加好了。试一下,速度快多了。
    --------------------- 
    作者:liyuanbhu 
    来源:CSDN 
    原文:https://blog.csdn.net/liyuanbhu/article/details/56496501 
    版权声明:本文为博主原创文章,转载请附上博文链接!

  • 相关阅读:
    Python学习之余,摸摸鱼
    Python 实现斐波那契数
    Linux下为什么目录的大小总是4096
    Python的精髓居然是方括号、花括号和圆括号!
    为什么说Python是最伟大的语言?看图就知道了!
    前端常用知识(会更新)
    Mysql 约束
    Navicat 安装
    Java后台将CTS格式转为标准日期时间格式返回给前端
    MySQL数据库报错“Zero date value prohibited”
  • 原文地址:https://www.cnblogs.com/kumukim/p/11006646.html
Copyright © 2020-2023  润新知