列出所有包依賴的包:
brew deps --tree --installed
列出不被任何包依賴的包:
brew leaves
列出依賴某個包pac的所有包:
brew uses pac --installed
結合brew list可以列出所有包被依賴的關係:
brew list | while read cask
do
echo -en $cask'\t'
brew uses $cask --installed | tr '\n' '\t'
echo -en '\n'
done