This directory contains Homebrew package lists for easy migration between machines.
- leaves.txt - Command-line tools and packages with full tap paths (e.g.,
felixkratz/formulae/borders) - casks.txt - GUI applications with full tap paths (e.g.,
nikitabobko/tap/aerospace)
Run these commands to save your current Homebrew installation:
brew leaves > brew/leaves.txt
brew list --cask --full-name > brew/casks.txtInstall all packages (Homebrew will auto-tap third-party repositories as needed):
# Install formulae (auto-taps third-party repos like felixkratz/formulae)
xargs brew install < brew/leaves.txt
# Install casks (auto-taps third-party repos like nikitabobko/tap)
xargs brew install --cask < brew/casks.txtxargs brew install < brew/leaves.txt && xargs brew install --cask < brew/casks.txt- Auto-tapping: When you install a formula or cask using full tap notation (e.g.,
brew install felixkratz/formulae/borders), Homebrew automatically taps the repository if it's not already tapped - leaves.txt: Uses
brew leavesto track only top-level packages (not dependencies). Packages from custom taps include the full path (e.g.,felixkratz/formulae/borders) - casks.txt: Uses
brew list --cask --full-nameto preserve tap information (e.g.,nikitabobko/tap/aerospace) - No manual tapping required: The full tap notation in both files ensures Homebrew handles tapping automatically during installation
When restoring, Homebrew will automatically handle taps:
# These commands auto-tap if needed:
brew install felixkratz/formulae/borders # Auto-taps felixkratz/formulae
brew install hashicorp/tap/terraform # Auto-taps hashicorp/tap
brew install --cask nikitabobko/tap/aerospace # Auto-taps nikitabobko/tap