No video

Homebrew: macOS Package Manager

  Рет қаралды 75,805

Hands-On Mac

Hands-On Mac

4 жыл бұрын

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](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 raw.githubuser...)"`
(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](formulae.brew....)
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: twit.to/amazon
Join our TWiT Community on Discourse: www.twit.commu...
Follow us:
twit.tv
/ twit
/ twitnetwork
/ 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
11:11
Hands-On Mac
Рет қаралды 11 М.
Hidden FREE Mac Apps!
28:14
Snazzy Labs
Рет қаралды 180 М.
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 48 МЛН
Они так быстро убрались!
01:00
Аришнев
Рет қаралды 3,1 МЛН
КТО ЛЮБИТ ГРИБЫ?? #shorts
00:24
Паша Осадчий
Рет қаралды 883 М.
I want to love Apple, but they’re making it hard - Mac Studio SSD Swapping
16:06
The 1st thing to install on ANY Mac
16:02
Tech Craft
Рет қаралды 62 М.
Fun With Mac Terminal Commands - Hands-On Mac 5
21:53
Hands-On Mac
Рет қаралды 36 М.
Inside the Mac Filesystem - Hands-On Mac 12
22:42
Hands-On Mac
Рет қаралды 39 М.
Set up a Mac in 2024 for Power Users and Developers
1:00:34
Syntax
Рет қаралды 300 М.
50 macOS Tips and Tricks Using Terminal (the last one is CRAZY!)
11:11
Linux Command-Line Tips & Tricks: Over 15 Examples!
31:37
Learn Linux TV
Рет қаралды 215 М.
15 Essential Mac Apps (Some You’ve Never Heard Of)
10:20
Stephen Robles
Рет қаралды 63 М.
Is Nix Your New Terminal SUPERPOWER?
15:21
DevOps Toolbox
Рет қаралды 21 М.
Absolute BEGINNER Guide to the Mac OS Terminal
17:03
Percy Grunwald from TopTechSkills
Рет қаралды 751 М.
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 48 МЛН