96

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.

nohillside
  • 100,768
Daniel
  • 3,898

1 Answers1

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.

  • 9
    Seems like brew cask upgrade is 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:32
  • 30
    brew upgrade --cask is preferred now – Xorifelse Oct 12 '20 at 21:35
  • 3
    @Xorifelse Why is --cask preferred? – aryanm Jun 07 '21 at 23:56
  • 8
    @aryanm : Because brew cask upgrade doesn't work anymore (Error: Unknown command: cask). – mhellmeier Aug 26 '21 at 16:38
  • brew upgrade --cask not updated my excited packages like Flutter. using brew upgrade --g will 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