給 MSYS2 添加中科大的源

最近一段時間不知怎麼的,使用默認的 MSYS2 源升級軟件或是安裝新軟件的特別的慢。因此就翻了翻國內的幾個開源軟件的鏡像庫,發現中科大的庫裏就有 MSYS2。因此就研究了一下,給 MSYS2 添加了中科大的源。spa

簡單的說 msys64\etc\pacman.d 目錄下有三個文件。 
mirrorlist.msys 
mirrorlist.mingw64 
mirrorlist.mingw32.net

這三個文件記錄了都有哪些源。下面把我添加以後的文件內容貼上來。 
首先是 mirrorlist.msys:code

## ## 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:blog

## ## 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/

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

 

http://blog.csdn.net/liyuanbhu/article/details/56496501asm

相關文章
相關標籤/搜索