This document is intended to help the user install MSYS and start using it.
INSTALLATION
- Download: MSYS releases
- Under the “2026-09-27” release, select: msys2-x86_64-20260927.exe
- Double-click the executable
- Click Next
- Enter
c:\slosh-msys - Enter
SLOSH-MSYS - Wait for the installation
- Click Finish (Don’t run MSYS2 now)
-
Choose an environment
For more see: MSYS-environmentName Prefix Tool chain Architecture C-lib C++-lib MSYS /usr gcc x86_64 cygwin libstdc++ UCRT64 /ucrt64 gcc x86_64 ucrt libstdc++ CLANG64 /clang64 llvm x86_64 ucrt libc++ CLANGARM64 /clangarm64 llvm aarch64 ucrt libc++ CLANG32 /clang32 llvm i686 ucrt libc++ MINGW64 /mingw64 gcc x86_64 msvcrt libstdc++ MINGW32 /mingw32 gcc i686 msvcrt libstdc++ - This document assumes you picked UCRT64.
- Note CLANG: llvm lacks features compared to gcc.
- Note MINGW: msvcrt is stuck in the past (backward compatibility) so is not c99 compatible.
- Create taskbar icon
- Browse for
c:\slosh-msys\ucrt64.exe - Double-click
- Pin it to the taskbar
- Browse for
PACKAGE MANAGEMENT
MSYS uses ‘pacman’ for its package management. Some key commands are:
pacman -Sy- Update database of versions.pacman -Su- Update installed packages.pacman -Ss- Search for packages.pacman -Q- List all installed packages.pacman -R- Remove a package.
INITIAL UPDATE
After an initial install, you must update the package database, update the base packages, and install extra packages required by the SLOSH model.
-
Update package database:
pacman -Syu # Prompt: Proceed with installation? [Y/n] Y # Prompt: To complete ... terminal closed ... Confirm? [Y/n] YRestart the terminal.
-
Update the base packages:
pacman -Su # Prompt: Proceed with installation? [Y/n] Y -
Install required packages:
pacman -S --needed diffutils git make vim man # Prompt: Proceed with installation? [Y/n] Y
CONFIGURATION FILES
Beyond installing basic packages, updating your configuration files will
significantly improve your MSYS experience. The steps below update .vimrc,
.bash_profile, .bashrc, and .minttyrc to enhance Vim, Bash, and the
terminal.
-
Minimal ~/.vimrc
vim ~/.vimrcEnter the following vimrc
-
Minimal ~/.bash_profile and ~/.bashrc
mv ~/.bash_profile bash_profile-orig vim ~/.bash_profileEnter the following bash_profile
mv ~/.bashrc bashrc-orig vim ~/.bashrcEnter the following bashrc
-
Minimal ~/.minttyrc
vim ~/.minttyrcEnter the following minttyrc
-
Capture the PATH It is useful to know the MS-Windows path to the home directory in case there are multiple versions of MSYS on a system. It can also come in handy for determining how long ago you installed this version of MSYS.
a=$(cygpath -m ~) ; d=${a:0:1} ; echo "/${d,,}${a:2}" > ~/PATH -
Close and open To have the configuration files go into effect, it is recommended to close your MSYS prompt and re-open it now.

