1. 7
  1.  

  2. 2

    Now, as root or a sudoer, set a package path for remote package retrieval:

    export PKG_PATH=ftp://ftp5.usa.openbsd.org/pub/OpenBSD/5.2/packages/machine -a/

    This can also be added to your ~/.profile with:

    PATH=/sbin:/usr/sbin:/bin…

    PKG_PATH=ftp://ftp5.usa.openbsd.org/pub/OpenBSD/5.2/packages/machine -a/

    export PATH PKG_PATH

    I’d only add here that /etc/pkg.conf is a better place to put a package path (with installpath=ftp://...), since it becomes system-wide for pkg_add and if you installed OpenBSD through FTP/HTTP, it put that mirror’s path in /etc/pkg.conf automatically.