MSYS2 / MSYS / MinGW: Difference between revisions

From miki
Jump to navigation Jump to search
Line 16: Line 16:
* [http://www.mingw.org/wiki/msys MSYS]
* [http://www.mingw.org/wiki/msys MSYS]
* [http://www.mingw.org/ MinGW]
* [http://www.mingw.org/ MinGW]

== Tips ==
=== Install/update MSYS2 packages on offline computer ===
MSYS2 can be installed and updated on a computer that has no internet connection. It only requires a secondary computer with internet access.
We follow the procedure on [https://stackoverflow.com/questions/38393755/mingw-w64-offline-installer SO]:

;On the computer with internet access
<source lang="c">
mkdir ~/offline_packages
cd ~/offline_packages
pacman -Syw base base-devel mingw-w64-x86_64-toolchain --cachedir .
repo-add ./offline.db.tar.gz ./*
</source>

Now copy {{file|offline_packages}} to an external storage device.

;On offline computer
* Install MSYS2.
* Copy {{file|offline_packages}} to a path that MSYS2 can access (for instance {{file|C:/msys64/home/user/offline_packages}})
* Edit {{file|C:/msys64/etc/pacman.conf}}:
:* Comment out the [mingw32], [mingw64], [msys] repositories.
:* Add a new section (update as necessary):
<source lang="text">
[offline]
SigLevel = Optional
Server = file:///home/user/offline_packages
</source>
*Then in an MSYS2 terminal:
<source lang="c">
pacman -Syu
pacman -S --needed base base-devel mingw-w64-x86_64-toolchain
</source>

Revision as of 11:33, 15 October 2018

This page is about:

  • MSYS, MSYS is a collection of GNU utilities such as bash, make, gawk and grep on Windows.
  • MinGW, "Minimalist GNU for Windows". MinGW is a minimalist development environment for native Microsoft Windows applications.
  • MSYS2, a Cygwin-derived software distro for Windows using Arch Linux's Pacman. MSYS2 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.

MSYS and MinGW are mostly inactive now. MSYS2 is the active alternative.

References

MSYS2
MSYS / MinGW

Tips

Install/update MSYS2 packages on offline computer

MSYS2 can be installed and updated on a computer that has no internet connection. It only requires a secondary computer with internet access. We follow the procedure on SO:

On the computer with internet access
mkdir ~/offline_packages
cd ~/offline_packages
pacman -Syw base base-devel mingw-w64-x86_64-toolchain --cachedir .
repo-add ./offline.db.tar.gz ./*

Now copy offline_packages to an external storage device.

On offline computer
  • Install MSYS2.
  • Copy offline_packages to a path that MSYS2 can access (for instance C:/msys64/home/user/offline_packages)
  • Edit C:/msys64/etc/pacman.conf:
  • Comment out the [mingw32], [mingw64], [msys] repositories.
  • Add a new section (update as necessary):
[offline]
SigLevel = Optional
Server = file:///home/user/offline_packages
  • Then in an MSYS2 terminal:
pacman -Syu
pacman -S --needed base base-devel mingw-w64-x86_64-toolchain