Msys2 POSIX tools on Windows

How to turn your Windows 10 into unix like environment


What is Msys2 [ ]

MSYS2 is a software distro and building platform for Windows

At its core is an independent rewrite of MSYS, based on modern Cygwin (POSIX compatibility layer) and MinGW-w64 with the aim of better interoperability with native Windows software. It provides a bash shell, Autotools, revision control systems and the like for building native Windows applications using MinGW-w64 toolchains.

It features a package management system to provide easy installation of packages, Pacman. It brings many powerful features such as dependency resolution and simple complete system upgrades, as well as straight-forward package building.


How to install it and add basic tools?

  • Get Msys2 from
  • Install as described at the msys2 home page
  • Rename the file c:\msys64\usr\bin\ssh.exe to c:\msys64\usr\bin\ssh.exe_old
  • Run commands in Msys2 terminal window
pacman -S net-utils msys/screenfetch
pacman -S msys/vim msys/bc nano msys/tmux wget gzip zip unzip msys/p7zip tar msys/tree

Have fun!!!



How to fix not properly displayed icons of known applications at Start menu, Desktop, Taskbar

It happened few times for my computer that some application icons were not displayed properly: Firefox, Virtualbox, JetBrains PyCharm, GoProStudio, Google Chrome.

Here is the solution I found at :

Here’s a slightly quicker version of the instructions.
1. Press Ctrl-Shift-Escape to get the task manager.
2. In the Processes tab, click on explorer.exe and click End Process. You’ll get a confirmation dialog. Click “End Process” to confirm.
3. From the File menu (still in the task manager), choose New Task (Run…).
4. Copy/paste/enter the following command in the run box:
cmd /c del %userprofile%\AppData\Local\IconCache.db /a
5. Open the Run box again with File –> New Task (Run…). This time, enter this command:
6. All should be okay now. Open the Start Menu and confirm that your icons are fixed now.