Dependency confusion

Peter Clark clarkp at
Thu Jul 2 18:06:24 UTC 2009

Dan Nelson wrote:
> In the last episode (Jul 02), Peter Clark said:
>> I have a number of ports installed on my 7.2Release box. When I issue
>> pkg_info I see that I have both db41-4.1.25_4 and db46- installed. 
>> Is there an easy way to see which program is linked to which db?  Is this
>> some sort of redundant listing and I really only have db4.6 installed or
>> can you have both side by side?  My real concern is about which db backend
>> my cyrus-imap-23 is linked against.
> All the db* ports install files with the version number embedded in them, so
> you can have multiple versions installed without conflicts.  "ldd
> /path/to/exe" will tell you which library a given binary is linked with, and
> you can run "pkg_info -R 'db4*'" to determine which ports depend on which
> versions of db.

Thanks Dan and Bill.

Dan, ldd and pkg_info -R did the trick.

I really appreciate it.


More information about the freebsd-questions mailing list