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

时间:2013-09-25 16:49:22

标签: macos osx-snow-leopard homebrew

如何让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

2 个答案:

答案 0 :(得分:54)

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

$ brew ls --verbose exim

答案 1 :(得分:0)

如果有问题的软件包是 cask 安装(例如 mactex),那么您需要在 list/ls 命令中包含 --cask 参数,例如

brew ls --cask exim

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