Freebsd – n easy way to rebuild all ports

bsd-portsfreebsd

In the upgrade process for 10.1-RELEASE, I'm prompted with this:

Installing updates...
Completing this upgrade requires removing old shared object files.
Please rebuild all installed 3rd party software (e.g., programs
installed from the ports tree) and then run "/usr/sbin/freebsd-update install"
again to finish installing updates.

Is there a way to quickly rebuild all of my ports? Perhaps buried in portmaster's huge man page? I couldn't find it myself…

Best Answer

https://www.freebsd.org/doc/en/books/handbook/updating-upgrading-freebsdupdate.html, section 24.2.3.3:

portmaster -af

Forget about "quickly" though. This may take some time depending on your machine and the ports installed. :)

After that, you'll have to run freebsd-update install one last time.

Related Question