how to update FreeBSD 6.2 and below (using CVSup) February 10th, 2010
The instructions below are for FreeBSD 6.2 and below only, as these systems do not include the freebsd-update utility.
These systems use CVSup (docs: handbook;
homepage). However, CVSup is deprecated, and should NOT be used. These instructions
are still online just in case anyone needs them - in reality, upgrading FreeBSD to a newer version is recommended.
To update the source tree, so as to get the latest patches:
login as root
cd /usr/local/etc
cp /usr/share/examples/cvsup/standard-supfile .
chmod 644 standard-supfile
vi standard-supfile
change the *default host setting (I use cvsup3.uk.FreeBSD.org or cvsup2.nl.FreeBSD.org)
save the changes and exit the editor
cvsup -g -L 2 standard-supfile (this requires a live internet connection, and takes a while)
The source tree updated, rebuild the system (docs: handbook):
cd /usr/src
make buildworld (this takes quite a while)
make buildkernel (this takes a while)
make installkernel
reboot, then log back in as root
cd /usr/src
make installworld
reboot
Don't skip the reboots, without them the new kernel does not become active (not sure about world).
The step below is no longer recommended. Use portsnap instead.
The system rebuilt, update the ports collection:
cd /usr/local/etc
cp /usr/share/examples/cvsup/ports-supfile .
chmod 644 ports-supfile
vi ports-supfile
change the *default host setting (eg. cvsup3.uk.FreeBSD.org)
save the changes and exit the editor
cvsup -g -L 2 ports-supfile (this requires a live internet connection, and takes a while)
CVSup requires port TCP 5999 outbound open on the firewall.
The more ports there are installed, the longer the port update takes. It's possible to control which groups of ports are updated, however this is not covered here.