Skip to content

Commit 0045181

Browse files
committed
Add a mirrors page targeted at users
And not mirror admins/developers. It's a bit tricky to seperate that from the dev/mirrors page, so that might need some adjustments to remove duplication.
1 parent f7bdb02 commit 0045181

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ nav:
117117
- docs/environments.md
118118
- docs/updating.md
119119
- docs/ci.md
120+
- docs/mirrors.md
120121
- docs/terminals.md
121122
- docs/ides-editors.md
122123
- docs/installer.md

web/docs/mirrors.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Package Mirrors
2+
3+
MSYS2 uses multiple mirror servers around the world to distribute packages. By default, when you install or update packages, pacman automatically selects the best available mirror to download from.
4+
5+
## How Mirrors Work
6+
7+
By default, pacman tries mirrors in the order listed in these files:
8+
9+
- `/etc/pacman.d/mirrorlist.mingw` (for mingw packages)
10+
- `/etc/pacman.d/mirrorlist.msys` (for msys packages)
11+
12+
The first entry `mirror.msys2.org` is a special geo-redirector that automatically sends you to the nearest tier 1 mirror. The second entry is `repo.msys2.org`, which is the main package server. Everything else in the lists are [third-party mirrors](../dev/mirrors.md).
13+
14+
## Changing Your Mirror
15+
16+
To use a specific mirror:
17+
18+
1. Edit `/etc/pacman.d/mirrorlist.mingw` and `/etc/pacman.d/mirrorlist.msys`
19+
2. Move your preferred mirror to the top of the list
20+
3. Or comment out unwanted mirrors with `#`
21+
22+
## Corporate Firewalls and Restricted Networks
23+
24+
If you're behind a firewall that blocks most internet access:
25+
26+
1. Ask your IT team to allowlist `repo.msys2.org` or any other specific mirrors you want to use.
27+
2. Edit your mirrorlist files to use only that mirror:
28+
29+
```
30+
Server = https://repo.msys2.org/mingw/$arch/
31+
Server = https://repo.msys2.org/msys/$arch/
32+
```
33+
34+
`mirror.msys2.org` is not suitable for firewalls because it redirects to various mirrors, which may not be allowlisted.
35+
36+
## Privacy and Logging
37+
38+
Information about what data is transmitted to mirrors and how it's used can be found on the [Privacy page](../privacy.md).

0 commit comments

Comments
 (0)