After updating to 10.8 ‘Mountain Lion’ I’m wondering how I can rebuild everything I have installed through the packaging system Homebrew (similar to MacPorts) to ensure all dependencies are installed optimally for the new system. How can it easily be achieved? The help file offers no hints as to how I can accomplish this.
Asked
Active
Viewed 1.3e+01k times
1 Answers
131
Use the command brew upgrade in the terminal to update all of the packages. As for rebuilding all of your programs for the new OS build, there is no reason to do this as the compiled binary should result as the same. If you are noticing any issues, I would just uninstall and reinstall the packages that you are having issues with.
Nathan Walker
- 6,562
brew cask upgradeis also needed to get apps updated. (I run into https://github.com/Homebrew/homebrew-cask/issues/49716#issuecomment-413515303 when I did - the workaround fixed it though) – Günter Zöchbauer Jul 18 '19 at 14:32brew upgrade --caskis preferred now – Xorifelse Oct 12 '20 at 21:35--caskpreferred? – aryanm Jun 07 '21 at 23:56brew cask upgradedoesn't work anymore (Error: Unknown command: cask). – mhellmeier Aug 26 '21 at 16:38brew upgrade --casknot updated my excited packages like Flutter. usingbrew upgrade --gwill be preferred as mentioned in Manpage : -g, --greedy: Also include outdated casks with auto_updates true or version :latest. --greedy-latest: Also include outdated casks including those with version :latest. --greedy-auto-updates: Also include outdated casks including those with auto_updates true. – Misagh Feb 18 '24 at 09:39