Professional Documents
Culture Documents
Module-3-Working With FreeBSD Ports
Module-3-Working With FreeBSD Ports
l Described in detail at
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html
l The ports is a collection of « skeleton » instructions
(Makefile, patches) to retrieve, configure, build and
install software
l The ports collection contains instructions for over
25,000 software programs as of June 2017, and it is still
growing.
Installing software ...
l 1. It must be unpacked
l 2. It must be adapted to the system one is running on
(« porting »)
l 3. It may be compiled (source -> binary)
l 4. It must installed
l 5. It may need to be configured
Installing software ...
l
PACKAGES PORTS
precompiled more and better
easy to install configuration control /
no need to have ports options (for example Apache
collection installed and PHP)
local patches possible
tuning options
Installing packages
# make package
l ... from the directory where you built the port from.
Best of both worlds
l For instance:
# portinstall bash
Using portupgrade
Try and install from a package, fallback to the port if the package isn't
found:
# portinstall -P <port name>
l For instance:
# portupgrade apache
Summary