LinuxCommandLibrary

brew-uninstall

Remove an installed Homebrew package

TLDR

Uninstall a formula

$ brew uninstall [formula]
copy
Uninstall a cask
$ brew uninstall --cask [cask]
copy
Force remove all versions
$ brew uninstall --force [formula]
copy
Uninstall ignoring dependencies
$ brew uninstall --ignore-dependencies [formula]
copy
Remove with zapping additional files
$ brew uninstall --zap [cask]
copy

SYNOPSIS

brew uninstall [options] formula|cask ...

DESCRIPTION

brew uninstall removes an installed formula or cask. It checks Homebrew's database to locate the package and removes it along with associated files.
Aliases: brew remove, brew rm

PARAMETERS

--force, -f

Force removal, delete all versions of the formula
--ignore-dependencies
Don't fail even if formula is a dependency of other packages
--formula
Treat all arguments as formulae
--cask
Treat all arguments as casks
--zap
Remove all files associated with cask (including preferences)

RELATED COMMANDS

brew autoremove

Remove unused dependencies after uninstall
brew deps formula
Check dependencies before uninstalling
brew uses formula
Check what depends on a formula

CLEANUP

After uninstalling, run brew autoremove to remove dependencies that are no longer needed by any installed package.

CAVEATS

Cannot uninstall packages not managed by Homebrew. Use --force carefully as it removes all versions. Check dependencies with brew uses before removing to avoid breaking other packages.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community