From owner-freebsd-questions@FreeBSD.ORG Mon Apr 14 18:23:30 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30C2C37B401 for ; Mon, 14 Apr 2003 18:23:30 -0700 (PDT) Received: from ms-smtp-03.southeast.rr.com (ms-smtp-03.southeast.rr.com [24.93.67.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 285ED43FA3 for ; Mon, 14 Apr 2003 18:23:29 -0700 (PDT) (envelope-from marcus@marcuscom.com) Received: from mail3.nc.rr.com (fe3 [24.93.67.50])h3F1MCMs019842; Mon, 14 Apr 2003 21:22:12 -0400 (EDT) Received: from creme-brulee.marcuscom.com ([66.57.17.158]) by mail3.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Mon, 14 Apr 2003 21:20:53 -0400 Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) h3F1MCaa095345; Mon, 14 Apr 2003 21:22:12 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Erik Steffl In-Reply-To: <3E9B5D94.4070401@bigfoot.com> References: <3E9B5A56.2070609@yahoo-inc.com> <1050368712.69920.39.camel@shumai.marcuscom.com> <3E9B5D94.4070401@bigfoot.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-5fJl8IuRWA2JXxLctfVi" Organization: MarcusCom, Inc. Message-Id: <1050369791.69920.44.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 14 Apr 2003 21:23:12 -0400 X-Spam-Status: No, hits=-39.4 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,QUOTE_TWICE_1,REFERENCES, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: FreeBSD User Questions List Subject: Re: how to find which package contains file? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2003 01:23:30 -0000 --=-5fJl8IuRWA2JXxLctfVi Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2003-04-14 at 21:17, Erik Steffl wrote: > Joe Marcus Clarke wrote: >=20 > >On Mon, 2003-04-14 at 21:03, Erik Steffl wrote: > > =20 > > > >> is it possible to find which package contains file? > >> > >> Let's say I know that I need libiconv.so.1 library (just an example)= ,=20 > >>which package do I need to install? > >> =20 > >> > > > >If you have the package and file already installed on your system: > > > >pkg_info -W /path/to/file > > =20 > > > thanks but what about the situation described abovwe - when I am=20 > trying to find which package to install when there's some file missing?=20 > (usually a library but could be something else). Ah, then (and there are probably better ways, but this came to mind first): cd /usr/ports find . -maxdepth 3 -name pkg-plist | xargs grep Note, things like libraries aren't a good choice, since their version is likely to change. However, given your libiconv example: cd /usr/ports find . -maxdepth 3 -name pkg-plist | xargs grep "libiconv\.so" ./converters/libiconv/pkg-plist:lib/libiconv.so ./converters/libiconv/pkg-plist:lib/libiconv.so.3 Note, simply installing libiconv won't fix your issue as the app in question wants libiconv.so.1. In that case, it's best to also update the app that depends on the old version of the library. Checkout sysutils/portupgrade for a suite of tools that will help you manage your ports and packages. Joe >=20 > erik >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-5fJl8IuRWA2JXxLctfVi Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA+m17/b2iPiv4Uz4cRAhu3AJ9C8xs63rPqY1pl0vApcMiJs3ESmwCdHCCt Fbr7qBCkzOOZ4o7ipTPmaf4= =do/I -----END PGP SIGNATURE----- --=-5fJl8IuRWA2JXxLctfVi--