← 返回命令列表

Linux command

brew-remove 命令

文本

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

常用示例

Remove a formula

brew remove [formula]

Remove a cask

brew remove --cask [cask]

Remove all files associated with a cask

brew remove --zap [cask]

Force removal

brew remove --force [formula]

Remove and ignore dependencies

brew remove --ignore-dependencies [formula]

说明

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.

参数

--cask
Treat all named arguments as casks.
--formula
Treat all named arguments as formulae.
--force, -f
Delete all installed versions of a formula. For casks, uninstall even if not installed, overwrite existing files, and ignore errors.
--zap
Remove all files associated with a cask. May remove files which are shared between applications.
--ignore-dependencies
Do not fail uninstall if dependent formulae exist.

FAQ

What is the brew-remove command used for?

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.

How do I run a basic brew-remove example?

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

What does --cask do in brew-remove?

Treat all named arguments as casks.