How to Update Ports Collection In FreeBSD 12
FreeBSD is bundled with a rich collection of system tools as part of the base system.
In addition, FreeBSD provides two complementary technologies for installing third-party software:
i. The FreeBSD Ports Collection, for installing from source, and
ii. Packages, for installing from pre-built binaries.
The Ports Collection is a set of Makefiles, patches, and description files. Each set of these files is used to compile and install an individual application on FreeBSD, and is called a port.By default, the Ports Collection itself is stored as a subdirectory of /usr/ports
To ensure these port are up to date and contains the latest packages, we employ the portsnap tool
For the first time in using `portsnap`, you should run following command:
# portsnap fetch extract
Hereafter, you only need to execute the below command to update the Ports Collection
portsnap fetch update
Using the Ports Collection