有没有办法列出macOS brew包中的文件



有没有办法列出macOS中brew包(已安装(内的文件?

Ubuntu中的一些等效命令:

$ dpkg -L nginx
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/nginx
/usr/share/doc/nginx/copyright
/usr/share/doc/nginx/changelog.Debian.gz

brew list -v $FORMULA将列出所有已安装的文件。

例如:

$ brew ls -v bee
find /usr/local/Cellar/bee/1.80_1 -not -type d -print
/usr/local/Cellar/bee/1.80_1/INSTALL_RECEIPT.json
/usr/local/Cellar/bee/1.80_1/bin/bee
/usr/local/Cellar/bee/1.80_1/.brew/bee.rb
/usr/local/Cellar/bee/1.80_1/libexec/bin/bee
/usr/local/Cellar/bee/1.80_1/libexec/bin/bee.properties
/usr/local/Cellar/bee/1.80_1/libexec/lib/groovy-cli-commons-2.5.10.jar
/usr/local/Cellar/bee/1.80_1/libexec/lib/bee-1.80.jar
/usr/local/Cellar/bee/1.80_1/libexec/lib/groovy-sql-2.5.10.jar
/usr/local/Cellar/bee/1.80_1/libexec/lib/groovy-2.5.10.jar
/usr/local/Cellar/bee/1.80_1/libexec/lib/commons-cli-1.4.jar
/usr/local/Cellar/bee/1.80_1/libexec/lib/jackson-mapper-lgpl-1.9.13.jar
/usr/local/Cellar/bee/1.80_1/libexec/lib/jackson-core-lgpl-1.9.13.jar

请参阅手册页;ls只是list的简写。

相关内容

  • 没有找到相关文章

最新更新