From owner-freebsd-questions@FreeBSD.ORG Thu Jul 2 18:06:24 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4070F106564A for ; Thu, 2 Jul 2009 18:06:24 +0000 (UTC) (envelope-from clarkp@mtmary.edu) Received: from fear.mtmary.edu (fear.mtmary.edu [74.62.87.82]) by mx1.freebsd.org (Postfix) with ESMTP id 22DAF8FC12 for ; Thu, 2 Jul 2009 18:06:24 +0000 (UTC) (envelope-from clarkp@mtmary.edu) Received: from [127.0.0.1] (war.mtmary.edu [172.16.0.200]) by fear.mtmary.edu (Postfix) with ESMTP id 769545869E9; Thu, 2 Jul 2009 13:06:23 -0500 (CDT) Message-ID: <4A4CF71D.5050407@mtmary.edu> Date: Thu, 02 Jul 2009 13:06:21 -0500 From: Peter Clark User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: Dan Nelson References: <4A4CD041.5020006@mtmary.edu> <20090702164809.GB4205@dan.emsphone.com> In-Reply-To: <20090702164809.GB4205@dan.emsphone.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Dependency confusion X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jul 2009 18:06:24 -0000 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-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. > Thanks Dan and Bill. Dan, ldd and pkg_info -R did the trick. I really appreciate it. Peter