O'Reilly logo

Absolute OpenBSD, 2nd Edition by Michael W. Lucas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing Ports and Source Code

If you intend to build your own OpenBSD releases or heavily customize OpenBSD, you’ll need the operating system source code (see Chapter 18, Chapter 19, and Chapter 20). If you intend to build your own packages (covered in Chapter 13), you’ll need the ports tree. Both the ports tree and the system source code are specific to an OpenBSD release, and if you need them, install them when you install the system.

The ports tree is the compressed file ports.tar.gz in the release directory where you stored OpenBSD—either on the mirror site or the CD. All architectures share one ports tree. Download this file to your home directory and extract it in /usr.

# cd /usr/
# tar -xzvf $HOME/ports.tar.gz

This extracts the ports ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required