Date: 14 Apr 2003 21:23:12 -0400 From: Joe Marcus Clarke <marcus@marcuscom.com> To: Erik Steffl <steffl@bigfoot.com> Cc: FreeBSD User Questions List <freebsd-questions@freebsd.org> Subject: Re: how to find which package contains file? Message-ID: <1050369791.69920.44.camel@shumai.marcuscom.com> In-Reply-To: <3E9B5D94.4070401@bigfoot.com> References: <3E9B5A56.2070609@yahoo-inc.com> <1050368712.69920.39.camel@shumai.marcuscom.com> <3E9B5D94.4070401@bigfoot.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-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 <filename> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1050369791.69920.44.camel>
