permalink: what-is-homebrew
title: What is Homebrew?
tags:
- homebrew
- macos
Homebrew is a package manager for macOS (and Linux) that simplifies the installation of software.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Update normally.
brew update
If necessary, fetch taps and update.
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow && \
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow && \
brew update
When installing, you may see the message, "Warning: A newer Command Line Tools release is available."
Update them from Software Update in System Preferences, or run this command:
softwareupdate --all --install --force
If that doesn't show you any updates, run this:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Homebrew applications write logs here:
/opt/homebrew/var/log