Is there a way to find out which Application / package owns or creates a specific file? For example, in Linux these commands will show the package owner
apt-file /bin/progname rpm -qf /bin/progname yum whatprovides /bin/progname
In OS X, a file could be part of a native OS X application, or installed by Macports or Homebrew. These are completely different environments. Are there commands for each environment to check which application / package owns a specific file?