portupgrade is a tool for FreeBSD systems to "upgrade installed packages or install new ones via ports or packages".
A brute-force rebuild of all installed packages can be achieved with the following command:
portupgrade -af
where -a means do with all installed packages, -f force upgrade.
A rebuild of all installed packages may require some attentions when prompts with configure menus, which is quite annoying if default configurations work for you, or for other reasons. Is there a way to do portupgrade in a batch mode?
The answer is yes, the option --batch allows portupgrade to run an upgrading process in a batch mode (equivalent to set BATCH=yes). The following command dose portupgrade and requires no interaction from user:
portupgrade -af --batch
No comments:
Post a Comment