Skip to content

Commit

Permalink
update-core script has been retired, see msys2/MSYS2-packages#524
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Oakley committed Feb 21, 2019
1 parent 87bcb85 commit 7210fb7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Updating-your-SDK.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,22 @@ therefore refuse to overwrite the files from above-mentioned packages.

To keep the development environment up-to-date, developers need to run

update-core
# If core-packages are updated during that call you MUST restart MSYS2
pacman -Syuu
# If core-packages are updated during that call you MUST restart MSYS2,
# follow instructions and repeat.
pacman -Syu

from time to time.

### Caution (update-core)

Core packages like the `msys2-runtime`, `bash` or `pacman` itself should be updated
via the pacman `update-core` script. Because those core packages are linked to the
via the `pacman -Syuu` command [was X`update-core` script X]. Because those core packages are linked to the
`msys2-runtime` (and each other), and updating the runtime "in flight" results most
often in heap corruption as far as MSYS2 is concerned.

The old `update-core` script has been retired, see https://github.com/msys2/MSYS2-packages/issues/524

## Alternative Method

An alternative method is to start `git-cmd.exe` and run `pacman -Sy --needed msys2-runtime` and `pacman -S --needed pacman bash`, because that ensures that no obsolete binary continues to be used after the
Expand All @@ -61,7 +64,6 @@ update.
* ArchLinux articles - [Creating Packages](https://wiki.archlinux.org/index.php/Creating_packages) and [PKGBuild](https://wiki.archlinux.org/index.php/PKGBUILD)
* [MSYS2 Introduction & Contributing](http://sourceforge.net/p/msys2/wiki/Contributing%20to%20MSYS2/)
* [SDK's setup-git-sdk.bat script](https://github.com/git-for-windows/build-extra/blob/master/sdk-installer/setup-git-sdk.bat)
* [pacman's core-update script](https://github.com/Alexpux/MSYS2-pacman/blob/master/scripts/update-core.sh.in)

## Origin of 'net installer' concept

Expand Down

0 comments on commit 7210fb7

Please sign in to comment.