List all files in a homebrew package

MacosOsx Snow-LeopardHomebrew

Macos Problem Overview

How can I get homebrew to list out all files installed for a package? For example, when I run brew list for the exim package, I get these files:

$ brew list exim

But there are files added to the system that is not in the list above. For example:

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

Macos Solutions

Solution 1 - Macos

Just add -v or --verbose, for example:

$ brew ls --verbose exim

Solution 2 - Macos

If the package in question is a cask install (e.g. mactex) then you'll need to include the --cask arg to the list/ls command e.g.

brew ls --cask exim

Note: With casks if you don't include the --cask arg then it often reports an error. And with the --cask arg it may only list the installer dmg as it doesn't seem to track the resulting installed files.


All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionHanxueView Question on Stackoverflow
Solution 1 - MacosgsantovenaView Answer on Stackoverflow
Solution 2 - MacosPierzView Answer on Stackoverflow