Ports

OpenBSD provides a ports tree for installing software. You can find a copy of the ports from [the mirrors page. OpenBSD provides a ports tree for installing software. You can find a copy of the ports from [the mirrors page.

!!Setting up ports tree using tarball

$ cd /tmp
$ ftp https://cdn.openbsd.org/pub/OpenBSD/$(uname -r)/{ports.tar.gz,SHA256.sig}
$ signify -Cp /etc/signify/openbsd-$(uname -r | cut -c 1,3)-base.pub -x SHA256.sig ports.tar.gz

If that returns OK, then the download was successful and valid. As root, run:

# cd /usr
# tar xzf /tmp/ports.tar.gz

!!Using ports tree

To build a package from ports,

$ cd /usr/ports/<folder>/<package>
$ make
$ doas make install