How To Manage Your Local Packages Directly From Terminal with Mac Homebrew

Olumide OmotosoOlumide Omotoso
2 min read

Introduction

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.

install homebrew

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.

brew update

To update all package definitions (formulae) and Homebrew itself

brew update

brew outdated

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

brew outdated

brew upgrade

Upgrade every installed packages with:

brew upgrade

Upgrade a specific package with:

brew upgrade <package>

brew update php , brew update python3 etc.

brew pin

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.

0
Subscribe to my newsletter

Read articles from Olumide Omotoso directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Olumide Omotoso
Olumide Omotoso

Product Developer & Founder. Building products that simplify tasks to a click - one tool per time.