Update, build and install world and kernel

Updating the sources using csup

by ross at 08:09:34 on October 2, 2012

CVS support for ports is already dropped. You can still fetch system sources for -RELENG and -STABLE branches using csup however. But nobody knows when it will be dropped too. Time to switch to svn (read the previous page).

Updating freshly installed system

If this is the first time you run csup on this system, then you don't have csup checkout files yet. Without these files csup will not delete local files that has been removed from master repository.

The simpliest way to deal with it is to delete existing /usr/src before doing update for the fist time. Or just don't install src package when you install the system.

Find fastest csup server

# cd /usr/ports/sysutils/fastest_cvsup
# make install clean
# rehash
# fastest_cvsup -c UA

Replace UA with your country code. The utility will find the fastest cvsup server.

Update the source tree

You can fetch the source tree for your -RELEASE:

# csup -L2 -h cvsup5.ua.freebsd.org /usr/share/examples/cvsup/standard-supfile

Replace -h with the fastest csup server you discovered in the previous step.

Switch to -STABLE

# csup -L2 -h cvsup5.ua.freebsd.org /usr/share/examples/cvsup/stable-supfile

Copy one of the example supfiles and edit it to fetch any version of any branch. Remember that tag=RELENG_9 means FreeBSD 9.0-STABLE and tag=RELENG_9_0 means FreeBSD 9.0-RELEASE (which is a snapshot of -STABLE).

 

Comments