@@ -14,11 +14,16 @@ environment too by executing all programs through
14
14
` stack exec -- <program_name> ` .
15
15
16
16
Executables and libraries can be installed with the MSYS2 package manager
17
- ` pacman ` . All tools can be found in the
18
- [ package list] ( https://github.com/msys2/msys2/wiki/Packages ) . A [ list of
19
- commands] ( https://github.com/msys2/msys2/wiki/Using-packages ) that work with
20
- ` pacman ` is also available. Just remember that ` pacman ` &mdash ; like all other
21
- tools &mdash ; should be started with ` stack exec -- pacman ` .
17
+ ` pacman ` . All tools can be found in the [ index] ( https://packages.msys2.org ) to
18
+ MSYS2 packages. A [ guide] ( https://www.msys2.org/docs/package-management/ ) to
19
+ package management with ` pacman ` is also available. ` pacman ` &mdash ; like all
20
+ other tools in the Stack environment &mdash ; should be started with
21
+ ` stack exec -- pacman ` . Help about ` pacman ` commands (operations) can be
22
+ obtained by ` stack exec -- pacman --help ` . Help about a specific ` pacman `
23
+ operation can be obtained by using ` --help ` (or ` -h ` ) with an operation. For
24
+ example, help about the operation ` --sync ` (or ` -S ` ) can be obtained with
25
+ ` stack exec -- pacman --sync --help ` or, equivalently,
26
+ ` stack exec -- pacman -Sh ` .
22
27
23
28
Command ` stack path --bin-path ` to see the PATH in the Stack environment. On
24
29
Windows, it includes the ` \mingw64\bin ` , ` \usr\bin ` and ` \usr\local\bin `
@@ -27,13 +32,14 @@ directories of the Stack-supplied MSYS2. If your executable depends on files
27
32
it outside of the Stack environment, you will need to ensure copies of those
28
33
files are on the PATH.
29
34
35
+ ## Updating the Stack-supplied MSYS2 ##
36
+
30
37
The Stack-supplied MSYS2 can itself be updated with the Stack-supplied ` pacman ` .
31
- See the MSYS2 guide
32
- [ 'III. Updating packages'] ( https://www.msys2.org/wiki/MSYS2-installation/ ) . If
38
+ See the MSYS2 guide [ Updating MSYS2] ( https://www.msys2.org/docs/updating/ ) . If
33
39
the Stack-supplied ` pacman ` has a version that is 5.0.1.6403 or greater (see
34
40
` stack exec -- pacman --version ` ) then the command to update is simply:
35
41
36
- stack exec -- pacman -Syuu
42
+ stack exec -- pacman -Suy
37
43
38
44
This command may need to be run more than once, until everything is reported by
39
45
` pacman ` as 'up to date' and 'nothing to do'.
0 commit comments