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:

  1. login as root
  2. cd /usr/local/etc
  3. cp /usr/share/examples/cvsup/standard-supfile .
  4. chmod 644 standard-supfile
  5. vi standard-supfile
  6. change the *default host setting (I use cvsup3.uk.FreeBSD.org or cvsup2.nl.FreeBSD.org)
  7. save the changes and exit the editor
  8. 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):

  1. cd /usr/src
  2. make buildworld (this takes quite a while)
  3. make buildkernel (this takes a while)
  4. make installkernel
  5. reboot, then log back in as root
  6. cd /usr/src
  7. make installworld
  8. 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:

  1. cd /usr/local/etc
  2. cp /usr/share/examples/cvsup/ports-supfile .
  3. chmod 644 ports-supfile
  4. vi ports-supfile
  5. change the *default host setting (eg. cvsup3.uk.FreeBSD.org)
  6. save the changes and exit the editor
  7. cvsup -g -L 2 ports-supfile (this requires a live internet connection, and takes a while)

Notes: