Dependency confusion

Dan Nelson dnelson at allantgroup.com
Thu Jul 2 16:48:13 UTC 2009


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-4.6.21.4 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.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list