Skip to content

Instantly share code, notes, and snippets.

@sdr01810
Created December 31, 2017 04:22
Show Gist options
  • Save sdr01810/3a8bcc003823584635b438e5d14c4a11 to your computer and use it in GitHub Desktop.
Save sdr01810/3a8bcc003823584635b438e5d14c4a11 to your computer and use it in GitHub Desktop.
How to install MSYS2, including performing the initial system upgrade (safely).

How to install and setup MSYS2

Installation

  1. Download the Windows installer for MSYS2, and run it as administrator.
  2. When prompted for the installation folder, specify C:\Programs\MSYS2.
  3. When prompted for the shortcut folder, specify MSYS2.
  4. At the final installation page, deselect Run MSYS2 now, and press the Finish button.
  5. Next: immediately perform the initial system upgrade (see below).

Initial system upgrade

  1. Run a CMD window as administrator.
  2. Change directory to C:\Programs\MSYS2, and execute msys2_shell.
  3. At the (new) shell prompt, execute the command exit.
  4. Switch back to the CMD window, and execute the command .\usr\bin\pacman -Syuu.
  5. When prompted to exit, press Ctrl-C to terminate the program; then close the CMD window.
  6. Next: immediately perform an incremental system upgrade (see below).

Incremental system upgrade(s)

  1. At the Windows Start Menu, enter msys2 into the search field.
  2. Select MSYS2 MSYS from the menu and run it as administrator.
  3. At the (new) shell prompt, execute the command pacman -Syuu.
  4. Repeat that step until it says there are no packages to update.
  5. Close the MSYS2 shell window.
  6. Next: resume using MSYS2. Plan on updating periodically as needed.

Tested against MSYS2 20161025 on Windows 7 Ultimate 32-bit.

-- Steve Rogers, 2017-12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment