LinuxCommandLibrary

brew-remove

Remove an installed Homebrew package

TLDR

Remove a formula

$ brew remove [formula]
copy
Remove a cask
$ brew remove --cask [cask]
copy
Remove formula and dependencies not used by other formulae
$ brew remove --zap [formula]
copy
Force removal even if other formulae depend on it
$ brew remove --force [formula]
copy
Remove and ignore dependencies
$ brew remove --ignore-dependencies [formula]
copy

SYNOPSIS

brew remove [options] formula|cask [...]

DESCRIPTION

brew remove uninstalls a formula or cask. This is an alias for brew uninstall. It removes the installed files but by default preserves configuration files and does not remove dependencies.
For casks, use --zap to perform a more thorough removal including application preferences and caches.

PARAMETERS

--cask

Treat all named arguments as casks.
--formula
Treat all named arguments as formulae.
--force -f
Delete all installed versions.
--zap
Remove all files associated with a cask, including preferences and caches.
--ignore-dependencies
Do not fail uninstall if dependent formulae exist.

CAVEATS

Removing a formula that other formulae depend on will fail unless --ignore-dependencies is used. The --zap option for casks may remove user data.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community