I want to find/list/search packages depending on a specific package on FreeBSD with pkg tool. How can I do that? Something like:

# pkg list dependent-upon llvm40 ???


Running $ man pkg-info, I see:

     The following options are supported by pkg info:

     -r, --required-by
             Display the list of packages which require pkg-name.

I tested and it works:

$ pkg info -r llvm40

|improve this answer|||||
  • 3
    Note that this would only search amongst your installed packages, not all packages in the repository. – arrowd Sep 7 '17 at 6:51
  • 2
    Though I would hardly be interested in knowing all the packages requiring perl5 in all the ports (...) – Ouki Sep 7 '17 at 7:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.