FreeBSD Getting Ports tree


Example

Portsnap

portsnap fetch
portsnap extract

updating ports tree with portsnap

portsnap update

schedule cron job for daily updates

0 3 * * * root /usr/sbin/portsnap cron

SVN

head

cd /usr/ports
svnlite checkout https://svnweb.freebsd.org/ports/head .

quaterly

FreeBSD Ports team freeze ports tree every 3 months. To get this ports tree you can use ports branches:

cd /usr/ports
svnlite checkout https://svnweb.freebsd.org/ports/branches/2016Q4 .

Tarball (http or ftp)

cd /usr/ports
fetch http://ftp.freebsd.org/pub/FreeBSD/releases/amd64/11.0-RELEASE/ports.txz
tar xJvf ports.txz

Git

git clone https://github.com/freebsd/freebsd-ports