← 返回命令列表

Linux command

brew-autoremove 命令

文本

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

常用示例

Remove unused dependencies

brew autoremove

Preview what would be removed

brew autoremove --dry-run

说明

brew autoremove uninstalls formulae that were only installed as dependencies and are no longer needed by any installed formula. It cleans up orphaned dependencies left behind after uninstalling packages.

参数

--dry-run, -n
List what would be removed without removing

FAQ

What is the brew-autoremove command used for?

brew autoremove uninstalls formulae that were only installed as dependencies and are no longer needed by any installed formula. It cleans up orphaned dependencies left behind after uninstalling packages.

How do I run a basic brew-autoremove example?

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

What does --dry-run, -n do in brew-autoremove?

List what would be removed without removing