LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

brew-rm

Remove an installed Homebrew package

TLDR

Remove a formula
$ brew rm [formula]
copy
Remove a cask
$ brew rm --cask [cask]
copy
Force removal of all installed versions
$ brew rm --force [formula]
copy
Remove with zap (thorough cask removal including preferences and caches)
$ brew rm --zap --cask [cask]
copy
Remove multiple formulae
$ brew rm [formula1] [formula2] [formula3]
copy
Dry run to see what would be removed
$ brew rm --dry-run [formula]
copy

SYNOPSIS

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

DESCRIPTION

brew rm is an alias for brew uninstall and brew remove. It uninstalls a formula or cask from the system.All three commands (rm, remove, uninstall) are functionally identical. Removing a formula does not automatically remove its unused dependencies; use brew autoremove to clean those up.

PARAMETERS

--cask

Treat all named arguments as casks.
--formula
Treat all named arguments as formulae.
-f, --force
Delete all installed versions of a formula. For casks, also remove even if the cask is not installed.
--zap
Remove all files associated with a cask, including preferences, caches, and other shared resources. Use with caution.
--ignore-dependencies
Do not fail uninstall even if dependent formulae still exist.
-n, --dry-run
Show what would be removed without actually removing anything.
-d, --debug
Display any debugging information.
-v, --verbose
Make some output more verbose.

CAVEATS

Removing a formula that other installed formulae depend on will fail unless --ignore-dependencies is used. The --zap option may remove shared resources used by other applications. Keg-only formulae unlinked from the prefix are still removed.

SEE ALSO

Copied to clipboard
Kai