Computerglitch

An ongoing adventure

Updating Ports With CVSUP

This how-to explains the process of updating the ports directory on a OpenBSD system. If you don’t have the ports directory installed yet go to /pub/OpenBSD/3.7/ports.tar.gz (substitute 3.7 for your OpenBSD version)


Next, extract the ports.tar.gz to /usr/ (so you should now have a directory /usr/ports/ with all the ports in it)


Keeping your port directory updated with cvsup.
First install cvsup:

# cd /usr/ports/net/cvsup
# make && make install

Create the file cvs-supfile in the /usr/ports/ directory with the following contents:

*default release=cvs
*default delete use-rel-suffix
*default umask=002
*default host=cvsup.usa.openbsd.org
*default base=/usr
*default prefix=/usr

OpenBSD-ports

Next execute cvsup with the following switches and tell it to use the cvs-supfile

# cd /usr/ports
# cvsup -g -L 2 cvs-supfile

Finally to see what ports are out of date and need to be updated do the following:

# cd /usr/ports/infrastructure/build/
# ./out-of-date

Comments