LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

brew-reinstall

Uninstall and reinstall a Homebrew package

TLDR

Reinstall a formula
$ brew reinstall [formula]
copy
Reinstall a cask
$ brew reinstall --cask [cask]
copy
Reinstall with debug output
$ brew reinstall --debug [formula]
copy
Reinstall and build from source
$ brew reinstall --build-from-source [formula]
copy
Reinstall without quarantine (casks only)
$ brew reinstall --no-quarantine [cask]
copy
Reinstall interactively
$ brew reinstall --interactive [formula]
copy

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

RESOURCES

Copied to clipboard
Kai