Install ports collection in OpenBSD

Tue 31 July 2007
    $ cd /tmp
    $ ftp ftp://ftp.openbsd.org/pub/OpenBSD/4.0/ports.tar.gz
    $ cd /usr
    $ sudo tar xzf /tmp/ports.tar.gz

To install a package for the 4.1 release on an i386 machine off the ftp site (including dependencies), do:

    # export PKG_PATH=ftp://openbsd.ftp.fu-berlin.de/pub/OpenBSD/4.1/packages/i386
    # pkg_add name.tgz

Ports and Packages Update for an OpenBSD Release

To grab the stable branch for the 4.1 release:

    $ cd /usr/ports
    $ cvs -q -d anoncvs@openbsd.spline.de:/cvs up -r OPENBSD_4_1 -Pd