The FreeBSD Ports and Packages Collection offers a simple way for users and administrators to install applications.

To initialize ports collection for the first time.

$ portsnap fetch extract

To update ports collection.

$ portsnap fetch update

When you are building ports and want to skip the configuration questions.

$ export BATCH=yes

To clean up port build environment with all dependencies.

$ make clean clean-depends rmconfig