Linux command
brew-bundle 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Install all dependencies
brew bundle install
Install from a specific Brewfile
brew bundle --file=[path/to/Brewfile]
Dump installed packages
brew bundle dump
Dump with descriptions
brew bundle dump --describe
Check if all dependencies
brew bundle check
Uninstall packages
brew bundle cleanup
Preview cleanup
brew bundle cleanup --dry-run
Use global Brewfile
brew bundle --global
说明
brew bundle provides a declarative interface for managing Homebrew packages using a Brewfile. It can install, upgrade, and track packages from Homebrew formulae, Casks, Mac App Store, taps, and other sources. Brewfiles specify the desired state of installed packages, making it easy to replicate development environments or maintain consistent setups across machines.
参数
- --file _path_
- Use specified Brewfile location
- --global
- Use global Brewfile (~/.Brewfile or XDG location)
- --describe
- Add description comments when dumping
- --force
- Force cleanup/dump even if dependencies exist
- --dry-run
- Show what would happen without making changes
- --verbose
- Print detailed output
- --no-upgrade
- Don't upgrade already-installed packages
FAQ
What is the brew-bundle command used for?
brew bundle provides a declarative interface for managing Homebrew packages using a Brewfile. It can install, upgrade, and track packages from Homebrew formulae, Casks, Mac App Store, taps, and other sources. Brewfiles specify the desired state of installed packages, making it easy to replicate development environments or maintain consistent setups across machines.
How do I run a basic brew-bundle example?
Run `brew bundle install` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --file _path_ do in brew-bundle?
Use specified Brewfile location