← 返回命令列表

Linux command

brew-rm 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Remove a formula

brew rm [formula]

Remove a cask

brew rm --cask [cask]

Force removal

brew rm --force [formula]

Remove with zap

brew rm --zap --cask [cask]

Remove multiple formulae

brew rm [formula1] [formula2] [formula3]

Dry run

brew rm --dry-run [formula]

说明

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.

参数

--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.

FAQ

What is the brew-rm command used for?

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.

How do I run a basic brew-rm example?

Run `brew rm [formula]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --cask do in brew-rm?

Treat all named arguments as casks.