8.3 Distfile Caching

Caching distfiles in a local repository can greatly improve build times, and in cases where downloading a particular port is only necessary for a new build, can reduce bandwidth. As long as there is sufficient disk space, enabling a local distfile cache can be accomplished by one of the following commands:

Where ${distfiles} is either an NFS mount point or, if using nullfs, a fully qualified path on the host where distfiles should be stored.