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

Photo by Dan Gold on Unsplash

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

Don't Be That Guy: Update Mac Apps And Homebrew Package

Olumide Omotoso's photo
Olumide Omotoso
·Sep 20, 2022·

2 min read

Subscribe to our newsletter and never miss any upcoming articles

Play this article

Table of contents

  • Introduction
  • install homebrew
  • brew update
  • brew outdated
  • brew upgrade
  • brew pin

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.

 
Share this