October 20, 2017

How to Update FreeBSD Source Files, Ports and Docs With CVSup

FreeBSD Logo

With CVSup you can update FreeBSD source files, ports and docs.
CVSup efficiently updates all types of files, including sources, binaries, hard links, symbolic links, and even device nodes. Read more at the CVSup handbook page.

Root access is required to edit the following files and to execute commands. Log in as root (su) or simply prepend sudo to all commands that require root privileges.

Install CVSup

Install CVSup from the ports tree.

cd /usr/ports/net/cvsup-without-gui/
make install clean

Navigate to the CVSup examples.

cd /usr/share/examples/cvsup/

Here you can create your own configuration file.

vi my-cvsup-configuration-file
*default host=cvsup.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
*default compress
ports-all

If you want to update only the last stable release and critical fixes you can change the release tag. For example for the FreeBSD 8.2 release use the following tag:

*default release=cvs tag=RELENG_8_2

Now you can update the ports collection with this command:

/usr/local/bin/cvsup my-cvsup-configuration-file

Comments

  1. Dont use CVSup, instead use csup. It gets same configuration and knobs as CVSup, it is faster and it comes with base FreeBSD system (no need to install).
    Have fun :)

Speak Your Mind