

#MSYS2 FISH SHELL UPDATE#
Finally you can do an update of the remaining packages by issuing:įor example, pacman -S make gettext base-devel.if any packages got updated during this then you MUST restart MSYS2 because files that are provided by these packages will be in use and after update you can get fork errors - you need to exit all MSYS2 shells then re-launch msys2_shell.bat Pacman -needed -S bash pacman pacman-mirrors msys2-runtime For this reason, the safest procedure for updating MSYS2 is to do it in two stages first those 'core' MSYS2 packages: however, because all MSYS2 programs share the same address space for DLLs due to how MSYS2 (well, Cygwin) implements 'fork', updating bash, MSYS2 or Pacman itself can cause subsequent package updates to fail. The 'normal' way ( don't do this) would be to simply issue: The next step is to update the installed packages (do this initially and as often as you want thereafter):.This command connects to the remote repositories and downloads the package databases. Before updating you should synchronize your local package databases with the latest repositories:.In older MSYS2 installations, follow these steps: Run pacman -Suu to update the rest of the packages (allowing downgrades).If one of the packages is updated during script run you MUST restart MSYS2 To update your MSYS2 installation you need: Since pacman 4., there's an update-core script that helps you to update MSYS2 in the right way. Repeat this step until it says there are no packages to update. updating just pacman while not updating msys2-runtime) are not supported and are expected to break stuff. MSYS2 comes with a ported version of the package manager (known from Arch Linux). Now you can update the base MSYS2 packages to their latest versions. After this initial run you MUST restart MSYS2 so that the settings are correct)

(if you did not use an installer and this is first time running of MSYS2 after unpacking, then at this point it will create the files and settings necessary for it to function properly.
#MSYS2 FISH SHELL INSTALL#
The installers and base archives only contain the tools necessary to 1) start MSYS2 2) update the pre-installed packages and 3) install new packages.Īfter installing or extracting MSYS2 you should start MSYS2 by executing msys2_shell.cmd. You can download the installers or base MSYS2 archives from the links below: They can be installed or extracted to any place on your computer, but you MUST use folder names that consist of only ascii characters and no spaces (also it makes good sense to put it in a path that doesn't use many characters due to PATH_MAX being 260 C:\msys64 is ideal). MSYS2 ships in the form of installers and base archives.
