brew-reinstall
Uninstall and reinstall a Homebrew package
TLDR
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 (casks only)$ brew reinstall --no-quarantine [cask]
Reinstall interactively$ brew reinstall --interactive [formula]
SYNOPSIS
brew reinstall [options] formula|cask [...]
DESCRIPTION
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.
PARAMETERS
--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.
CAVEATS
Reinstalling may interrupt services that depend on the formula. Running applications from reinstalled casks may need to be restarted.
SEE ALSO
brew(1), brew-install(1), brew-uninstall(1)
