How to Find the Files of a Certain Package in OSX

After upgrading from OSX Mountain Lion to Mavericks I wanted to completely delete a certain app so I was looking for files on my hard drive and found the “bom files” in /private/var/db/receipts. I ran apropos bom and it seems that OSX also has a receipts structure simirarly to chef and using the lsbom command I can list all the files of an app (listing works with user rights):

% lsbom -slf /private/var/db/receipts/

(-f lists files, -s lists paths of files, and -l lists symlinks)

If you are uncertain that the uninstaller will remove all the files of an app, before deleting it check it out with lsbom, save the list and check for the existence of the mentioned files.

comments powered by Disqus