Acquire OpenBSD Ports We begin by downloading the ports collection. First find the packages mirror
closest to your location and download the cvsup package. You will find a listing of
the mirrors at this url (http://www.openbsd.org/ftp.html#ftp). Here is the command
used on the prototype:
ftp ftp3.usa.openbsd.org
Login as anonymous (no password required)
cd /pub/OpenBSD/4.2/packages/i386
get cvsup-16.1hp0.tgz
cd /pub/OpenBSD/4.2/
get ports.tar.gz
quit
Now copy the ports.tar.gz file to /usr and unpack it.
cp ports.tar.gz /usr
cd /usr/
tar -xvzf ports.tar.gz
rm ports.tar.gz
Add the cvsup package with the following command as the root user:
pkg_add cvsup-16.1hp0.tgz
This will help keep the ports tree up to date. Now we need to build a cvsup file. The
contents of the file called /etc/cvs-supfile are listed here.
Nicholas Pappas
36
@ 2021 SANS Institute
Author Retains Full Rights