[Homebrew](https://brew.sh/) is a package manager for macOS (and Linux) that simplifies the installation of software.
# Install
```sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```
# Update
Update normally.
```sh
brew update
```
If necessary, fetch taps and update.
```bash
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
```
# Troubleshooting
## Installation
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:
```bash
softwareupdate --all --install --force
```
If that doesn't show you any updates, run this:
```sh
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
```
## Logging
Homebrew applications write logs here:
```sh
/opt/homebrew/var/log
```