d3a48cbb8c
`PACKAGEROOT' env var which you would set to a proper mirror of ftp.FreeBSD.org (say "export PACKAGEROOT=ftp://ftp3.FreeBSD.org"), to fetch from an alternate place. This is easier to use than `PACKAGESITE' for true mirrors, and can be used in your dot files across all versions of FreeBSD.
This is the pkg_install suite of tools for doing maintainance of software "packages". More documentation is available in the man pages for each individual command. This code was written by Jordan Hubbard for FreeBSD, snatched and mildly reshaped by John Kohl in NetBSD and the changes taken back into FreeBSD again by Jordan, who then proceeded to add another couple of dozen features on top. Whee! :-)