Mirrors
Table of Contents
Adding a mirror
If you would like to provide a new mirror of MacPorts content, please see Mirroring.
Portfiles
Portfiles are normally retrieved with port sync or port selfupdate. The URL used to get Portfiles is set in ${prefix}/etc/macports/sources.conf. The current list of mirrors is:
| Location | URL | Admin | Note | Provider |
|---|---|---|---|---|
| Australia, Brisbane | rsync://aarnet.au.rsync.macports.org/pub/macports/ports/ | mirror@… | AARNet | |
| Austria, Vienna | rsync://vie.at.rsync.macports.org/macports/release/tarballs/ports.tar | mirror@… | IPv6 enabled, 10 Gbit | Alwyzon |
| Canada, Waterloo | rsync://ykf.ca.rsync.macports.org/mprelease/tarballs/ports.tar | syscom@… | University of Waterloo | |
| China, Beijing | rsync://pek.cn.rsync.macports.org/macports/release/tarballs/ports.tar | mirrors@… | IPv6 enabled | |
| Denmark, Copenhagen | rsync://cph.dk.rsync.macports.org/macports/release/tarballs/ports.tar | techops@… | 10 Gbit | |
Germany, Erlangen | rsync://nue.de.rsync.macports.org/macports/release/tarballs/ports.tar | rrze-ftp-admins@… | IPv6 enabled, 25 Gbit | |
rsync://rsync.macports.org/macports/release/tarballs/ports.tar | ||||
| Germany, Limburg | rsync://fra.de.rsync.macports.org/macports/release/tarballs/ports.tar | ionic@… | IPv6 enabled | |
| Indonesia, Yogyakarta | rsync://jog.id.rsync.macports.org/macports/release/tarballs/ports.tar | ugos@… | Universitas Gadjah Mada | |
| Japan, Nomi, Ishikawa | rsync://kmq.jp.rsync.macports.org/macports/release/tarballs/ports.tar | ftp-admin@… | IPv6 enabled | Japan Advanced Institute of Science and Technology |
| Portugal, Lisbon | rsync://lis.pt.rsync.macports.org/macports/release/tarballs/ports.tar | tomas@… | IPv6 enabled, 20Gbit | |
| South Korea, Daejeon | rsync://cjj.kr.rsync.macports.org/macports/release/tarballs/ports.tar | ftp@… | Korea Advanced Institute of Science and Technology | |
| United Kingdom, Canterbury | rsync://mse.uk.rsync.macports.org/rsync.macports.org/release/tarballs/ports.tar | help@… | University of Kent | |
| United States, Boston | rsync://bos.us.rsync.macports.org/macports/release/tarballs/ports.tar | mirrors@… | 1 Gbit | MIT SIPB |
| United States, Georgia | rsync://atl.us.rsync.macports.org/MacPorts/release/tarballs/ports.tar | gtlib@… | IPv6 enabled | Georgia Tech |
Distfiles
Distfiles (“distribution files”) contain the source code for ports. They are usually retrieved from the project's site or one of their mirrors. The MacPorts project further mirrors the distfiles in one location. The following mirrors are queried automatically by MacPorts.
Archives
Archives contain pre-built installations of ports. The following mirrors are queried automatically by MacPorts.
Choosing a preferred mirror
Distfiles and archives are normally downloaded by trying each mirror in order of increasing ping time until one succeeds. If you find that this does not select the optimal mirror to try first, you can override the choice by setting preferred_hosts in macports.conf. This is a list of glob patterns, and any host that matches one of the patterns is effectively considered to have a ping time of 0, and is thus tried first. To prefer specific hosts:
preferred_hosts aarnet.au.distfiles.macports.org jog.id.packages.macports.org
Or, to prefer all hosts matching a pattern:
preferred_hosts *.au.*.macports.org
The above will match both aarnet.au.distfiles.macports.org and aarnet.au.packages.macports.org.
MacPorts Source
Since version 2.10.0, MacPorts is updated during port selfupdate by checking the current version on a HTTP server and downloading it if it is newer. The default
GitHub location should perform well for systems running macOS 10.12 or newer, but if not or on older OS versions, you can point your installation at a closer mirror listed
below by changing the two options, release_version_urls and release_urls, in ${prefix}/etc/macports/macports.conf.
| Location | release_version_urls | release_urls | Admin | Note | Provider |
|---|---|---|---|---|---|
| Australia, Brisbane | http://aarnet.au.distfiles.macports.org/pub/macports/distfiles/MacPorts/RELEASE_URL | http://aarnet.au.distfiles.macports.org/pub/macports/distfiles/MacPorts/MacPorts-{version}.tar.bz2 | mirror@… | AARNet | |
| Austria, Vienna | http://vie.at.distfiles.macports.org/MacPorts/RELEASE_URL | http://vie.at.distfiles.macports.org/MacPorts/MacPorts-{version}.tar.bz2 | mirror@… | IPv6 enabled, 10 Gbit | Alwyzon |
| Canada, Waterloo | http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/MacPorts/RELEASE_URL | http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/MacPorts/MacPorts-{version}.tar.bz2 | syscom@… | University of Waterloo | |
| China, Beijing | http://pek.cn.distfiles.macports.org/macports/distfiles/MacPorts/RELEASE_URL | http://pek.cn.distfiles.macports.org/macports/distfiles/MacPorts/MacPorts-{version}.tar.bz2 | mirrors@… | IPv6 enabled | |
| China, Shanghai | https://mirror.sjtu.edu.cn/macports/distfiles/MacPorts/RELEASE_URL | https://mirror.sjtu.edu.cn/macports/distfiles/MacPorts/MacPorts-{version}.tar.bz2 | sjtug-mirror-maintainers@… | 1 Gbit | |
| Denmark, Copenhagen | http://cph.dk.distfiles.macports.org/MacPorts/RELEASE_URL | http://cph.dk.distfiles.macports.org/MacPorts/MacPorts-{version}.tar.bz2 | techops@… | 10 Gbit | |
| Germany, Erlangen | http://nue.de.distfiles.macports.org/MacPorts/RELEASE_URL | http://nue.de.distfiles.macports.org/MacPorts/MacPorts-{version}.tar.bz2 | rrze-ftp-admins@… | IPv6 enabled, 25 Gbit | Friedrich-Alexander-Universität |
| Germany, Limburg | http://fra.de.distfiles.macports.org/MacPorts/RELEASE_URL | http://fra.de.distfiles.macports.org/MacPorts/MacPorts-{version}.tar.bz2 | ionic@… | IPv6 enabled | |
| Indonesia, Yogyakarta | http://jog.id.distfiles.macports.org/macports/distfiles/MacPorts/RELEASE_URL | http://jog.id.distfiles.macports.org/macports/distfiles/MacPorts/MacPorts-{version}.tar.bz2 | ugos@… | Universitas Gadjah Mada | |
| Italy, Milan | http://fco.it.distfiles.macports.org/MacPorts/RELEASE_URL | http://fco.it.distfiles.macports.org/MacPorts/MacPorts-{version}.tar.bz2 | mirror-service@… | IPv6 enabled | |
| Japan, Nomi, Ishikawa | http://kmq.jp.distfiles.macports.org/MacPorts/RELEASE_URL | http://kmq.jp.distfiles.macports.org/MacPorts/MacPorts-{version}.tar.bz2 | ftp-admin@… | IPv6 enabled | Japan Advanced Institute of Science and Technology |
| South Korea, Daejeon | http://cjj.kr.distfiles.macports.org/MacPorts/RELEASE_URL | http://cjj.kr.distfiles.macports.org/MacPorts/MacPorts-{version}.tar.bz2 | ftp@… | Korea Advanced Institute of Science and Technology | |
| United Kingdom, Canterbury | http://mse.uk.distfiles.macports.org/MacPorts/RELEASE_URL | http://mse.uk.distfiles.macports.org/MacPorts/MacPorts-{version}.tar.bz2 | help@… | University of Kent | |
| United States, Boston | http://bos.us.distfiles.macports.org/MacPorts/RELEASE_URL | http://bos.us.distfiles.macports.org/MacPorts/MacPorts-{version}.tar.bz2 | mirrors@… | 1 Gbit | MIT SIPB |
| United States, Fremont CA | http://mirror.fcix.net/macports/distfiles/MacPorts/RELEASE_URL | http://mirror.fcix.net/macports/distfiles/MacPorts/MacPorts-{version}.tar.bz2 | mirror@… | IPv6 enabled, 10 Gbit | Fremont Cabal Internet Exchange |
| United States, Georgia | http://atl.us.distfiles.macports.org/MacPorts/RELEASE_URL | http://atl.us.distfiles.macports.org/MacPorts/MacPorts-{version}.tar.bz2 | gtlib@… | IPv6 enabled | Georgia Tech |
Legacy rsync settings
The current version of MacPorts only uses rsync for selfupdate if updating via HTTP fails. If needed, you can point your installation at a closer mirror listed below by changing the two
options, rsync_server and rsync_dir, in ${prefix}/etc/macports/macports.conf. Note that the rsync fallback will likely be removed, along with these options, in a future version.
| Location | rsync_server | rsync_dir | Admin | Note | Provider |
|---|---|---|---|---|---|
| Austria, Vienna | vie.at.rsync.macports.org | macports/release/tarballs/base.tar | mirror@… | IPv6 enabled, 10 Gbit | Alwyzon |
| Canada, Waterloo | ykf.ca.rsync.macports.org | mprelease/tarballs/base.tar | syscom@… | University of Waterloo | |
| China, Beijing | pek.cn.rsync.macports.org | macports/release/tarballs/base.tar | mirrors@… | IPv6 enabled | |
| Denmark, Copenhagen | cph.dk.rsync.macports.org | macports/release/tarballs/base.tar | techops@… | 10 Gbit | |
Germany, Erlangen | nue.de.rsync.macports.org | macports/release/tarballs/base.tar | rrze-ftp-admins@… | IPv6 enabled, 25 Gbit | |
rsync.macports.org | |||||
| Germany, Limburg | fra.de.rsync.macports.org | macports/release/tarballs/base.tar | ionic@… | IPv6 enabled | |
| Indonesia, Yogyakarta | jog.id.rsync.macports.org | macports/release/tarballs/base.tar | ugos@… | Universitas Gadjah Mada | |
| Japan, Nomi, Ishikawa | kmq.jp.rsync.macports.org | macports/release/tarballs/base.tar | ftp-admin@… | IPv6 enabled | Japan Advanced Institute of Science and Technology |
| South Korea, Daejeon | cjj.kr.rsync.macports.org | macports/release/tarballs/base.tar | ftp@… | Korea Advanced Institute of Science and Technology | |
| United Kingdom, Canterbury | mse.uk.rsync.macports.org | rsync.macports.org/release/tarballs/base.tar | help@… | University of Kent | |
| United States, Boston | bos.us.rsync.macports.org | macports/release/tarballs/base.tar | mirrors@… | 1 Gbit | MIT SIPB |
| United States, Georgia | atl.us.rsync.macports.org | MacPorts/release/tarballs/base.tar | gtlib@… | IPv6 enabled | Georgia Tech |
Footnotes
| Keyword | Description |
|---|---|
| partial | Due to size constraints, this location might not mirror all content, but selectively delete data or choose not to mirror it. Most often, care is taken to only exclude non-recent data (e.g., packages or distfiles for older versions of ports) or data destined for deprecated platforms. |
