To install ports on FreeBSD 10, 11, 12, 13, or 14, you can use the following steps:
sudo portsnap fetch updateSource:www.lautturi.com
This will download the latest version of the ports tree and update your local copy.
Browse the ports tree to find the port you want to install. The ports tree is organized by category, and each port is located in a subdirectory under the category. For example, the Apache web server is located in www/apache24
.
sudo make install clean
Replace make
with the appropriate build tool for the port you are installing (e.g., bmake
, gmake
). This will build and install the port, and clean up any temporary files.
Follow the instructions provided by the port for testing and using the software.