Install ports collection in OpenBSD

Tue 31 July 2007
    $ cd /tmp
    $ ftp
    $ 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=
    # 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 up -r OPENBSD_4_1 -Pd