To install an application, you change to that application's directory and do the following: But obviously it's less typing to combine them into one command.
One of the best features of BSD is that there is a clear separation between the base system and external software. There are (at least) two ways to install third party software: with binary packages or with ports.When a port is already installed, you don't need to specify the category it's under.That's only when installing them for the first time.Let's get started by getting a copy of the ports tree. =native # Use clang instead of gcc, only needed for versions before 10.0 CC=clang CXX=clang CPP=clang-cpp # Compile everything in a ram disk and use ccache, see our tutorial WRKDIRPREFIX=/ram WITH_CCACHE_BUILD=yes # The newer pkgng format, only needed for versions before 10.0 WITH_PKGNG=yes # Use passive FTP and only use IPv4 FETCH_BEFORE_ARGS=-p4 # Add a fast mirror for downloading distfiles MASTER_SITE_BACKUP?We'll be using the portsnap command which is included in the base OS. = \ BSD/ports/distfiles/$ # Try downloading from it by default MASTER_SITE_OVERRIDE?Normally we are writing more about Linux here at Unixmen.