Using an alternative mirror for FreeBSD port retrieval

This is something I always search for which doesn’t seem to be very clear from the initial results. The mirrors included below are South Africa specific, so if you are not in South Africa then replace the hostname with something more appropriate for your location.

Add these to /etc/make.conf:

MASTER_SITE_BACKUP?=    \
    ftp://ftp.za.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/

MASTER_SITE_OVERRIDE?=  ${MASTER_SITE_BACKUP}

Mirrors

Network Hostname Alias IPv4 IPv6
Tenet ftp.za.freebsd.org freebsd.mirror.ac.za 155.232.191.209 -
CSIR ftp2.za.freebsd.org - 146.64.8.4 2001:4200:7000:1::4
MTN ftp3.za.freebsd.org - 196.30.227.198 -
IS ftp4.za.freebsd.org ftp.is.co.za 196.4.160.12 -

See this post for a far more detailed set of MASTER_SITE make variables. This references a lot more of the locally mirrored content.

Gregory Armer avatar
About Gregory Armer
Sometimes I just want to give it all up and become a handsome billionaire.
comments powered by Disqus