列出所有包依赖的包:

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