MSYS2
MSYS2 is a collection of tools and libraries providing you with an easy-to-use environment for building, installing and running native Windows software.
• Run the installer.
• Enter your desired Installation Folder.
• MSYS2 is ready!
• You are ready to use MSYS2 terminal for the UCRT64 environment.
• It’s time to install some tools. Run the following command:
pacman -S mingw-w64-ucrt-x86_64-gcc
• When it’s complete you can call gcc to verify your installation.
gcc --version
gcc.exe (Rev10, Built by MSYS2 project) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
• To update all packages run the following command:
pacman -Suy
• Pruning the package cache
paccache -r
• Finding a package (for example vim)
pacman -Ss vim
• Installing a package
pacman -S vim
• Uninstalling a package
pacman -U vim
• Finding dependencies of a package
pactree vim
It consists of a command line terminal called mintty, bash, version control systems like git and subversion, tools like tar and awk and even build systems like autotools, all based on a modified version of Cygwin. Despite some of these central parts being based on Cygwin, the main focus of MSYS2 is to provide a build environment for native Windows software and the Cygwin-using parts are kept at a minimum. MSYS2 provides up-to-date native builds for GCC, mingw-w64, CPython, CMake, Meson, OpenSSL, FFmpeg, Rust, Ruby, just to name a few.