How To Manage Your Local Packages Directly From Terminal with Mac Homebrew
Don't Be That Guy: Update Mac Apps And Homebrew Package
This is the first part of our Package Update Series
Simply, Homebrew help you install the stuffs you need that Apple didn’t install for you by default.
I assume that you already installed the brew package manager on your Mac and you've already used brew to install some packages.
Just in case, you haven't done that and you would like to do it - copy and paste the code below on your terminal
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Now to the business of the day,
I subscribe to the school of thought that many of our problems and debugging issues can be solved with a timely update, done right ofcourse.
To update all package definitions (formulae) and Homebrew itself
You can now list which of your installed packages that are outdated with: note that this will only perform the updated information if you've run brew update
Upgrade every installed packages with:
Upgrade a specific package with:
brew upgrade <package>
brew update php , brew update python3 etc.
Stop certain package from being updated? To stop something from being updated/upgraded:
brew pin <formula>
To allow that package to update again:
brew unpin <formula>
Thanks for reading.