列出自制软件包中的所有文件

如何让 homebrew列出为一个包安装的所有文件?例如,当我为 exim 包运行 brew list时,我会得到以下文件:

$ brew list exim
/usr/local/Cellar/exim/4.80.1/bin/exiwhat
/usr/local/Cellar/exim/4.80.1/bin/exiqsumm
/usr/local/Cellar/exim/4.80.1/bin/exiqgrep
/usr/local/Cellar/exim/4.80.1/bin/exipick
/usr/local/Cellar/exim/4.80.1/bin/exinext
/usr/local/Cellar/exim/4.80.1/bin/eximstats
/usr/local/Cellar/exim/4.80.1/bin/exim_tidydb
/usr/local/Cellar/exim/4.80.1/bin/exim_lock
/usr/local/Cellar/exim/4.80.1/bin/exim_fixdb
/usr/local/Cellar/exim/4.80.1/bin/exim_dumpdb
/usr/local/Cellar/exim/4.80.1/bin/exim_dbmbuild
/usr/local/Cellar/exim/4.80.1/bin/exim_ctl
/usr/local/Cellar/exim/4.80.1/bin/exim_checkaccess
/usr/local/Cellar/exim/4.80.1/bin/exim-4.80.1-3
/usr/local/Cellar/exim/4.80.1/bin/exim
/usr/local/Cellar/exim/4.80.1/bin/exigrep
/usr/local/Cellar/exim/4.80.1/bin/exicyclog
/usr/local/Cellar/exim/4.80.1/share/man/man8/exim.8

但是有些文件被添加到系统中,而这些文件不在上面的列表中,例如:

$ ls -ld /usr/local/etc/exim.conf
-rw-r--r--  1 hanxue  admin  35904 Sep 25 21:11 /usr/local/etc/exim.conf
54182 次浏览

只要添加 -v--verbose,例如:

$ brew ls --verbose exim

如果问题包是 木桶安装(例如 mactex) ,那么您需要将 --cask参数包含到 list/ls 命令中,例如。

brew ls --cask exim

注意: 对于木桶,如果没有包含 --cask参数,那么它通常会报告一个错误。使用 --cask参数时,它可能只列出安装程序 dmg,因为它似乎不会跟踪最终安装的文件。