brewにおいて依存関係なく削除できるpkgを表示するコマンド
for pkg in $(brew list); do
if [ -z "$(brew uses --installed $pkg)" ]; then
echo "$pkg can be uninstalled"
fi
done
Tags:
for pkg in $(brew list); do
if [ -z "$(brew uses --installed $pkg)" ]; then
echo "$pkg can be uninstalled"
fi
done