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 Business ftp3.za.freebsd.org - 196.30.227.198 -
Internet Solutions 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.

,

  1. No comments yet.
(will not be published)