Linux command
brew-reinstall 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Reinstall a formula
brew reinstall [formula]
Reinstall a cask
brew reinstall --cask [cask]
Reinstall with debug output
brew reinstall --debug [formula]
Reinstall and build from source
brew reinstall --build-from-source [formula]
Reinstall without quarantine
brew reinstall --no-quarantine [cask]
Reinstall interactively
brew reinstall --interactive [formula]
说明
brew reinstall uninstalls and then installs a formula or cask. This is useful for fixing broken installations, applying new build options, or refreshing a package to its current version. The command preserves configuration files when reinstalling formulas that have linked kegs.
参数
- --cask
- Treat all named arguments as casks.
- --formula
- Treat all named arguments as formulae.
- --build-from-source -s
- Compile formula from source even if a bottle exists.
- --debug -d
- Enable debugging mode during installation.
- --interactive -i
- Open an interactive shell for debugging the build.
- --no-quarantine
- Disable macOS quarantine for casks.
- --force
- Install without checking for previously installed versions.
- --verbose -v
- Print detailed installation output.
FAQ
What is the brew-reinstall command used for?
brew reinstall uninstalls and then installs a formula or cask. This is useful for fixing broken installations, applying new build options, or refreshing a package to its current version. The command preserves configuration files when reinstalling formulas that have linked kegs.
How do I run a basic brew-reinstall example?
Run `brew reinstall [formula]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --cask do in brew-reinstall?
Treat all named arguments as casks.