MSYS2下載:http://www.msys2.org/html
[mirrorlist.mingw32] #中國科學技術大學開源軟件鏡像 Server = http://mirrors.ustc.edu.cn/msys2/mingw/i686/ #北京理工大學開源軟件鏡像 Server = http://mirror.bit.edu.cn/msys2/REPOS/MINGW/i686 #清華大學開源軟件鏡像 Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686 #日本北陸先端科學技術大學院大學 sourceforge 鏡像 Server = http://jaist.dl.sourceforge.net/project/msys2/REPOS/MINGW/i686 Server = ftp://ftp.jaist.ac.jp/pub/sourceforge/m/ms/msys2/REPOS/MINGW/i686 Include = /etc/pacman.d/mirrorlist.mingw32 [mirrorlist.mingw64] #中國科學技術大學開源軟件鏡像 Server = http://mirrors.ustc.edu.cn/msys2/mingw/x86_64/ #北京理工大學開源軟件鏡像 Server = http://mirror.bit.edu.cn/msys2/REPOS/MINGW/x86_64 #清華大學開源軟件鏡像 Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/x86_64 #日本北陸先端科學技術大學院大學 sourceforge 鏡像 Server = http://jaist.dl.sourceforge.net/project/msys2/REPOS/MINGW/x86_64 Server = ftp://ftp.jaist.ac.jp/pub/sourceforge/m/ms/msys2/REPOS/MINGW/x86_64 Include = /etc/pacman.d/mirrorlist.mingw64 [mirrorlist.msys] #中國科學技術大學開源軟件鏡像 Server = http://mirrors.ustc.edu.cn/msys2/msys/$arch #北京理工大學開源軟件鏡像 Server = http://mirror.bit.edu.cn/msys2/REPOS/MSYS2/$arch #清華大學開源軟件鏡像 Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/$arch #日本北陸先端科學技術大學院大學 sourceforge 鏡像 Server = http://jaist.dl.sourceforge.net/project/msys2/REPOS/MSYS2/$arch Server = ftp://ftp.jaist.ac.jp/pub/sourceforge/m/ms/msys2/REPOS/MSYS2/$arch Include = /etc/pacman.d/mirrorlist.msys
XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
pacman -Syu
pacman -Sg
獲得結果以下:node
kf5 mingw-w64-i686-toolchain mingw-w64-i686 mingw-w64-i686-gimp-plugins mingw-w64-i686-qt4 mingw-w64-i686-qt mingw-w64-i686-qt5 mingw-w64-i686-vulkan-devel tesseract-data mingw-w64-x86_64-toolchain mingw-w64-x86_64 mingw-w64-x86_64-gimp-plugins mingw-w64-x86_64-qt4 mingw-w64-x86_64-qt mingw-w64-x86_64-qt5 mingw-w64-x86_64-vulkan-devel libraries development base-devel base msys2-devel compression VCS sys-utils Database net-utils editors python-modules mingw-w64-cross-toolchain mingw-w64-cross MSYS2-devel perl-modules
自行根據須要安裝,通常較經常使用安裝python
pacman -S --noconfirm mingw-w64-x86_64-toolchain libraries development base-devel msys2-devel compression VCS sys-utils net-utils editors python-modules pacman -S --noconfirm mingw-w64-cross mingw-w64-cross-toolchain
pacman -Sl
pacman -S --noconfirm mingw-w64-x86_64-python2 mingw-w64-x86_64-python2-setuptools mingw-w64-x86_64-python2-pip mingw-w64-x86_64-python2-ipython pacman -S --noconfirm mingw-w64-x86_64-python3 mingw-w64-x86_64-python3-setuptools mingw-w64-x86_64-python3-pip mingw-w64-x86_64-python3-ipython
pacman -S --noconfirm mingw-w64-x86_64-python2-numpy mingw-w64-x86_64-python2-scipy mingw-w64-x86_64-python2-matplotlib mingw-w64-x86_64-python2-pandas pacman -S --noconfirm mingw-w64-x86_64-python3-numpy mingw-w64-x86_64-python3-scipy mingw-w64-x86_64-python3-matplotlib mingw-w64-x86_64-python3-pandas
pacman -Sl | grep mingw-w64-x86_64-python2 | awk '{print "pacman -S --noconfirm "$2}' > python2-all.sh sh python2-all.sh pacman -Sl | grep mingw-w64-x86_64-python3 | awk '{print "pacman -S --noconfirm "$2}' > python3-all.sh sh python3-all.sh
pacman -S --noconfirm mingw-w64-x86_64-nodejs
pacman -S --noconfirm help2man man-db man-pages-posix
pacman -S --noconfirm zsh git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
vim .bashrc
在文件最後一行添加,固然也能夠直接在命令行中執行linux
exec zsh
pacman -S --noconfirm vim
wget -qO- https://raw.github.com/ma6174/vim/master/setup.sh | sh -x
Pacman 是一個命令行工具,這意味着當你執行下面的命令時,必須在終端或控制檯中進行。git
pacman -Syu
pacman -Su
pacman -S 包名 例如,執行 pacman -S firefox 將安裝 Firefox。你也能夠同時安裝多個包,只需以空格分隔包名便可。 pacman -Sy 包名 與上面命令不一樣的是,該命令將在同步包數據庫後再執行安裝。 pacman -Sv 包名 在顯示一些操做信息後執行安裝。 pacman -U 安裝本地包,其擴展名爲 pkg.tar.gz。
pacman -R 包名 該命令將只刪除包,不包含該包的依賴。 pacman -Rs 包名 在刪除包的同時,也將刪除其依賴。 pacman -Rd 包名 在刪除包時不檢查依賴。
pacman -Ss 關鍵字 這將搜索含關鍵字的包。 pacman -Qi 包名 查看有關包的信息。 pacman -Ql 包名 列出該包的文件。
pacman -Sw 包名 只下載包,不安裝。 pacman -Sc Pacman 下載的包文件位於 /var/cache/pacman/pkg/ 目錄。該命令將清理未安裝的包文件。 pacman -Scc 清理全部的緩存文件。
關於 Pacman 更加詳細的用法,能夠閱讀Pacman 的手冊頁github