FreeBSD Update All Installed Ports / Applications
To update all installed ports/applications on FreeBSD, you can use the portsnap and portmaster utilities. Follow these steps:
- Update your ports tree by running the following command as the superuser:
# portsnap fetch updateThis command downloads the latest version of the ports tree to your system.
- Install
portmasterif it is not already installed:# pkg install portmaster - Run the following command to update all installed ports:
# portmaster -aThis command updates all installed ports to their latest available versions, including any dependencies.
If you want to be prompted for confirmation before each port update, use the
-ioption:# portmaster -aiIf you want to rebuild and reinstall all ports, use the
-Roption:# portmaster -aRThis command will rebuild and reinstall all installed ports, including any dependencies.
- After the upgrade process is completed, it is a good practice to rebuild all the installed packages with the new libraries:
# portmaster -afThis command will rebuild all the installed packages with the new libraries and ensure that they are using the latest available version of the dependencies.
