How to install ports on FreeBSD

freebsd beastieBefore you can install ports, you must first obtain the Ports Collection–which is essentially a set of Makefiles, patches, and description files placed in /usr/ports.

When installing your FreeBSD system, sysinstall asked if you would like to install the Ports Collection. If you chose no, you can follow these instructions to obtain the ports collection:

From the FreeBSD Handbook:

First run:
# portsnap fetch
to download a new port tree from the Internet.

If you haven’t run portsnap before (first time updating after new installation):
# portsnap extract

Then always run:
# portsnap update

To install via CVS follow the link below:
http://www.freebsd.org/doc/handbook/ports-using.html

Tagged As: , ,