♫musicjinni

Homebrew: macOS Package Manager

video thumbnail
Introducing Homebrew - the MacOS package manager

A package manager makes it easy to install and update applications on your Macintosh. There are at least nine package managers for the Macintosh. There are the old-timers, Fink and Macports, the relatively new Nix, but my favorite is Homebrew. h[ttps://brew.sh](https://brew.sh)

If you saw our last two episodes, you're ready to install and use brew. Brew is a command-line utility. You'll use terminal to install it and to run its commands, even though many of the programs it can install are standard Mac GUI apps.

Let's start by installing brew. Here's the command:

`/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"`

(Save yourself some typing by copying this command from the Brew web page and pasting it into a terminal.)

Because may of the tools brew installs are built from source code, you'll need Apple's free Xcode installed and the Xcode command line tools.

Now you can install any of hundreds of pre-built "formula" for virtually any UNIX tool.

[Homebrew Formulae](https://formulae.brew.sh/formula/)

using the command

`brew install (package)`

You can remove it using the uninstall command

`brew uninstall (package)`

The command

`brew doctor`

Verifies that brew is properly installed and working.

One of the benefits of brew is that it installs everything in its own directory then puts a shortcut in the /usr/local directory, where it won't conflict with Apple installed programs. Many of the UNIX tools Apple bundles with macOS are older and out-of-date. Brew will install the latest version of the program without replacing Apple's pre-installed program, so nothing breaks. It's easy to remove any brew package without disrupting macOS.

There are a few other commands that are useful to know.

Mac GUI apps are available with the'brew cask install` command. For example `brew cask install firefox`

`brew list` will show you all the brew packages you've installed.

To find a package in the brew database use the `brew search` command

`brew upgrade` will update all the packages you've installed. You'll want to run that from time to time to make sure everything is up-to-date.

My Mac has dozens of brew packages installed. A few goodies include:

`python`

`cowsay`

my favorite shell`fish`

`glances`

`neofetch`

`howdoi`

`nnn`

`tldr`

`wget`

`magic-wormhole`

To learn more about brew type man brew

Next week, using brew and something called brewfile to set up a new mac from scratch.

Also, for next week, install `mas`. It's an easy way to install and update apps from the Mac App Store.

Leo Laporte gives you helpful tips to get the most from your Mac every week on Hands-On Mac.

Products we recommend: https://twit.to/amazon

Join our TWiT Community on Discourse: https://www.twit.community/

Follow us:
https://twit.tv
https://twitter.com/twit
https://www.facebook.com/TWiTNetwork
https://www.instagram.com/twit.tv

About us:
TWiT.tv is a technology podcasting network located in the San Francisco Bay Area with the #1 ranked technology podcast This Week in Tech hosted by Leo Laporte. Every week we produce over 30 hours of content on a variety of programs including Tech News Weekly, MacBreak Weekly, This Week in Google, Windows Weekly, Security Now, All About Android, and more.

Homebrew Bundle: Set Up a Mac Fast - Hands-on Mac 9

Homebrew: macOS Package Manager

Introducing Hands-On Mac!

Get to Know Your Terminal - Hands-On Mac 4

Fun With Mac Terminal Commands - Hands-On Mac 5

On the Road to Big Sur 5 - Let's Install!

Install Mac Fonts on Terminal - Fastest Way to Add Mac Fonts

The Ins and Outs of Gatekeeper - Hands-on Mac 3

Re-Introducing Hands-On Mac

Protect your Mac with Lulu - Hands-On Mac 2

On the Road to Big Sur 2 - Compatibility

Hands-on M1 Macbook Pro 13" - Worth Waiting for... a Little Longer

On the Road to Big Sur 4 - Inventory

Using FileVault to Secure Your Data - Hands-on Mac 10

Spotlight on Spotlight - Hands-On Mac 7

Folder Actions: Part 1 - Associate AppleScripts with folders on your Mac

On the Road to Big Sur 3 - Backup Backup Backup

Apple 'Scary Fast' Event Impressions

M1 Mac Reviews & Benchmarks

I'm a Desktop Stan - M1 Macs Blow Intel Macs Away

Easily Adjust File Creation Dates for Photos - A Better Finder Attributes

iOS 13 and macOS Catalina Betas: Our Favorite New Features

The Streisand Effect - m3 iMac, Q4 2023 Results, FCPX Updates

Leo Laporte - The Tech Guy 1335

Scamclub - MacBreak Weekly 638

Disclaimer DMCA