How to find package for installed file in Brew?

后端 未结 6 595
囚心锁ツ
囚心锁ツ 2020-12-23 13:37

How can I identify the package/formula for a given file, or a listing of all of a package\'s owned files, in Homebrew?

6条回答
  •  暖寄归人
    2020-12-23 13:53

    Find and brew prefix, (e.g. for opencv):

    find `brew --prefix opencv3`/ -exec ls -l {} \;
    

    (Please note judicious use of -exec, and never forget those \;'s, folks .. its how find knows that the -exec arg-list is finished..)

提交回复
热议问题