MSYS2 换中科大的源

msys2的源文件在    *\msys2\etc\pacman.d            星号是你的安装目录



里面有三个

mirrorlist.msys 
mirrorlist.mingw64 
mirrorlist.mingw32


修改msys2的源就是改这三个文件。可以用Notpad++打开


1.那我们先修改mirrorlist.msys       把下面的复制粘贴,覆盖掉原来的Server


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/


2.mirrorlist.mingw64    同样的


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/



3.mirrorlist.mingw32:



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/



OK换源完成!!!



转载自网络~

你可能感兴趣的:(msys2)