FreeBSD
# This uses system resources.
# On slower boxes, it will take some time, even hours for
# things to finish running. It all depends on CPU and RAM.
# Also, this can require large amounts of free HD space.
# Since you are rebuilding apps, things can fail, and your
# whole system may die. Normally though, this won't happen.
# Install cvsup
cd /usr/ports/net/cvsup-without-gui/
make install all
# Install fastest cvsup
cd /usr/ports/sysutils/fastest_cvsup
make install all
# Run fastest cvsup to determine best server
# Examples below (all servers, usa, or canada)
fastest_cvsup -c all
fastest_cvsup -c us
fastest_cvsup -c ca
/usr/local/bin/fastest_cvsup fastest_cvsup -c us
# Edit ports supfile (as root)
chmod 711 /usr/src/share/examples/cvsup/ports-supfile
vi /usr/src/share/examples/cvsup/ports-supfile
# Change this line to output of fastest_cvsup
*default host=CHANGE_THIS.FreeBSD.org
*default host=cvsup7.FreeBSD.org
# Save and exit
# cd to root of filesystem
cd /
# Update the ports tree (as root)
cvsup -g -L 1 /usr/src/share/examples/cvsup/ports-supfile
# If cvsup is not in your path, type the following
/usr/local/bin/cvsup -g -L 1 /usr/src/share/examples/cvsup/ports-supfile
# Update the ports database
/usr/local/sbin/portsdb -Uu
# List the installed ports which need upgrading
/usr/local/sbin/portversion -l "<"
# Upgrade the installed ports
/usr/local/sbin/portupgrade -arR
# Unless prompted, you are done at this point.
# Run
# /usr/local/sbin/pkgdb -F
# if you are prompted to.
# Run
# /usr/local/sbin/pkgdb -fu
# if everything goes wrong.