• MSYS2 更换国内源


    转自 : http://www.cnblogs.com/findumars/p/6546088.html
    最近一段时间不知怎么的,使用默认的 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/
    

    至此,中科大的源就添加好了。试一下,速度快多了。

  • 相关阅读:
    Linux 之dhcp服务搭建
    常用网络指令
    图解:光缆、终端盒、尾纤的作用和接法
    Excel2007给表格设置成只读加密属性 让他人无法修改
    CentOS 安裝 VMware Workstation / VMware Player
    Linux 命令之 grep
    iOS开发UI篇—从代码的逐步优化看MVC
    iOS开发UI篇—字典转模型
    iOS开发UI篇—九宫格坐标计算
    iOS开发UI篇—懒加载
  • 原文地址:https://www.cnblogs.com/feipeng8848/p/10037962.html
Copyright © 2020-2023  润新知