To rebuild a specific FreeBSD port and the ports that it depends on, for example, with
# portmaster -fR sysutils/pydf
To rebuild all install FreeBSD ports, it’s important to firstly read
/usr/ports/UPDATING for any update advisories.
Then, to list ports with issued warnings, do:
# portaudit -a
Once you are confident that the advisories for installed packages are negligible, issue:
# DISABLE_VULNERABILITIES=yes portmaster -R -a -f -B -C -d -G
-Rskips ports updated on the previous run
-achecks all ports and updates when needed
-Bprevents portmaster from creating a backup package
-Gretains custom build config options
# make cleanfrom being executed before the build
-dalways clean distfiles
DISABLE_VULNERABILITIES=yes prevents portmaster from aborting when an ‘unsafe’ port is encountered.