Linux command
brew-update 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Update Homebrew and package definitions
brew update
Update with verbose output
brew update --verbose
Update only if needed (for scripts)
brew update --auto-update
Force update from latest commit
brew update --force
Reset Homebrew and taps to origin
brew update-reset
说明
brew update fetches the newest version of Homebrew and all formulae from GitHub using git, and performs any necessary migrations. This command does not upgrade installed packages - use brew upgrade for that. Aliases: brew up
参数
- --verbose, -v
- Show detailed update information
- --debug, -d
- Show debugging information
- --force
- Always do a slower full update
- --auto-update
- Run only when needed (fast no-op otherwise)
- --merge
- Use git merge instead of git rebase
FAQ
What is the brew-update command used for?
brew update fetches the newest version of Homebrew and all formulae from GitHub using git, and performs any necessary migrations. This command does not upgrade installed packages - use brew upgrade for that. Aliases: brew up
How do I run a basic brew-update example?
Run `brew update` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --verbose, -v do in brew-update?
Show detailed update information