97

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.

0

1 Answer 1

133

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.

6
  • 9
    Seems like brew cask upgrade is also needed to get apps updated. (I run into github.com/Homebrew/homebrew-cask/issues/… when I did - the workaround fixed it though) Commented Jul 18, 2019 at 14:32
  • 31
    brew upgrade --cask is preferred now
    – Xorifelse
    Commented Oct 12, 2020 at 21:35
  • 3
    @Xorifelse Why is --cask preferred?
    – aryanm
    Commented Jun 7, 2021 at 23:56
  • 8
    @aryanm : Because brew cask upgrade doesn't work anymore (Error: Unknown command: cask).
    – mhellmeier
    Commented Aug 26, 2021 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
    Commented Feb 18 at 9:39

Not the answer you're looking for? Browse other questions tagged .