← 返回命令列表

Linux command

brew-uninstall 命令

文本

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

常用示例

Uninstall a formula

brew uninstall [formula]

Uninstall a cask

brew uninstall --cask [cask]

Force remove all versions

brew uninstall --force [formula]

Uninstall ignoring dependencies

brew uninstall --ignore-dependencies [formula]

Remove with zapping additional files

brew uninstall --zap [cask]

说明

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

参数

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

FAQ

What is the brew-uninstall command used for?

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

How do I run a basic brew-uninstall example?

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

What does --force, -f do in brew-uninstall?

Force removal, delete all versions of the formula