The Ports Collection

What are ports?

Ports are third party software which haven’t had the thorough security audit as the native OpenBSD programs have had. The ports collection is installed on your disk as a large tree of directories representing the various programs with in them a Makefile which specifies the information needed to install a particular port.

Installation of a program in /usr/ports:

  1. Retrieve /pub/OpenBSD/2.8/ports.tar.gz from the nearest OpenBSD mirror.
  2. Install with:
    cd /usr ; tar xvfz /tmp/ports.tar.gz
  3. Then cd to the directory of port you’d like to install.
  4. Run make as user root and the source tarball retrieval, unpacking, configuration and compilation processes start automagically :-)
  5. Run make install as user root to install the package.
  6. Afterwards, a .tgz binary package of the software you just compiled and installed can be found in /usr/ports/packages/arch/ which you can use to speed up the installation process on other machines for instance.

Comments are closed.