msys2

1. Environments

Name Prefix Toolchain Architecture C Library C++ Library Package prefix pacboy Package suffix
MSYS /usr gcc x86_64 cygwin libstdc++
UCRT64 /ucrt64 gcc x86_64 ucrt libstdc++ mingw-w64-ucrt-x86_64- u
CLANG64 /clang64 llvm x86_64 ucrt libc++ mingw-w64-clang-x86_64- c
CLANGARM64 /clangarm64 llvm aarch64 ucrt libc++ mingw-w64-clang-aarch64- a
CLANG32 /clang32 llvm i686 ucrt libc++ mingw-w64-clang-i686- z
MINGW64 /mingw64 gcc x86_64 msvcrt libstdc++ mingw-w64-x86_64- x
MINGW32 /mingw32 gcc i686 msvcrt libstdc++ mingw-w64-i686- i

2. Updating MSYS2

1
pacman -Suy

3. Finding a package

1
pacman -Ss

4. Installing a package

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# pacboy
pacman -S pactoys
pacman -S vim
# 当前环境包
pacboy -S package:p

# 7-zip
pacman -S mingw-w64-ucrt-x86_64-7zip
# gcc
pacman -S mingw-w64-ucrt-x86_64-toolchain
# cmake
pacman -S mingw-w64-ucrt-x86_64-cmake
pacman -S mingw-w64-ucrt-x86_64-qemu
# clang
pacman -S mingw-w64-ucrt-x86_64-clang
pacman -S mingw-w64-ucrt-x86_64-clang-tools-extra
pacman -S mingw-w64-ucrt-x86_64-lldb
pacman -S mingw-w64-ucrt-x86_64-lld
pacman -S mingw-w64-ucrt-x86_64-python-conan
pacman -S mingw-w64-ucrt-x86_64-sqlite3
pacman -S mingw-w64-ucrt-x86_64-putty
pacman -S mingw-w64-ucrt-x86_64-ruby
pacman -S mingw-w64-ucrt-x86_64-aria2
pacman -S mingw-w64-ucrt-x86_64-dosbox
pacman -S mingw-w64-ucrt-x86_64-yasm
pacman -S mingw-w64-ucrt-x86_64-nasm
pacman -S mingw-w64-ucrt-x86_64-nodejs
pacman -S mingw-w64-ucrt-x86_64-mosquitto
pacman -S mingw-w64-ucrt-x86_64-paho.mqtt.c
pacman -S mingw-w64-ucrt-x86_64-graphviz
pacman -S mingw-w64-ucrt-x86_64-imagemagick
pacman -S mingw-w64-ucrt-x86_64-nsis
# qt-creator
pacman -S mingw-w64-ucrt-x86_64-qt-creator
# texstudio
pacman -S mingw-w64-ucrt-x86_64-texstudio
# texlive
pacman -S mingw-w64-ucrt-x86_64-texlive-scheme-gust
pacman -S mingw-w64-ucrt-x86_64-opencv
pacman -S mingw-w64-ucrt-x86_64-gimp
pacman -S mingw-w64-ucrt-x86_64-krita
pacman -S mingw-w64-ucrt-x86_64-kimageformats-qt5
pacman -S mingw-w64-ucrt-x86_64-blender

pacman -S mingw-w64-ucrt-x86_64-kicad
pacman -S mingw-w64-ucrt-x86_64-kicad-meta
pacman -S mingw-w64-ucrt-x86_64-kicad-doc-zh
# https://openscad.org/documentation.html
pacman -S mingw-w64-ucrt-x86_64-openscad
# https://wiki.freecad.org/Getting_started
pacman -S mingw-w64-ucrt-x86_64-freecad

pacman -S mingw-w64-ucrt-x86_64-kdenlive
pacman -S mingw-w64-ucrt-x86_64-hugo
pacman -S mingw-w64-ucrt-x86_64-go
pacman -S mingw-w64-ucrt-x86_64-rust
pacman -S mingw-w64-ucrt-x86_64-perl
pacman -S mingw-w64-ucrt-x86_64-lua

5. Uninstalling a package

1
pacman -R