Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jan 2013 11:09:24 -0800
From:      Chip Camden <sterling@camdensoftware.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: can't find pkgng command
Message-ID:  <20130117190924.GC19645@libertas.local.camdensoftware.com>
In-Reply-To: <50F8061E.9030306@marino.st>
References:  <20728.1478.423219.871557@jerusalem.litteratus.org> <50F8061E.9030306@marino.st>

next in thread | previous in thread | raw e-mail | index | archive | help

--qGV0fN9tzfkG3CxV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Quoth John Marino on Thursday, 17 January 2013:
> pkg which <filename>
>=20
> On 1/17/2013 15:08, Robert Huff wrote:
> >
> > 	Under the old package system "pkg_info -W<filename>' would
> > tell me what port a file belonged to.
> > 	Perhaps due to not enough sleep, I have read the man page twice
> > but am unable to construct an equivalent.  Will someone please help
> > me not have to re-invent the wheel?
> >
> >     Respectfully,
> >
> >
> > 		Robert Huff
> >
> > _______________________________________________
> > freebsd-ports@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"

And if you (a) don't want to type in the full path or (b) want to make
sure that the file you execute actually does come from the port, you can
use a double-which.  E.g.,

$ pkg which `which ruby`
/usr/local/bin/ruby was installed by package ruby-1.8.7.371,1

while OTOH...

$ pkg which `which clang`
/usr/bin/clang was not found in the database



--=20
=2EO. | Sterling (Chip) Camden      | http://camdensoftware.com
=2E.O | sterling@camdensoftware.com | http://chipsquips.com
OOO | 2048R/D6DBAF91              | http://chipstips.com

--qGV0fN9tzfkG3CxV
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (FreeBSD)

iQEcBAEBAgAGBQJQ+ExkAAoJEIpckszW26+RgiEH/3ZbtWjQGRsyxstxm/9uv074
J4Q6Wi9bWLy3x4kV5R9GobxxV3cM93YYdgYm3SWdojdu+YLl5z2PAfgZ0+Ce18LL
4Ir4mrE9eZ1V06FJsA5kUi/S2dlCT0EH6kNAwwblPWwLtDGm+1NybQc0fvaYGxQi
igPOG8m3+OGPLIjEW3QH7svLMtkou0f0j/CJJND899LJs+cb4VOdcpBNtNVuVNhH
HQb2lJ8nwWwGnbqIE3EbF1lEBkWMEANmhZ2jlp1PrUq84pWD/UdwvcjcBrpPPNYy
Xk7ugZdyjk6CpLbaG9lSqUXlWnu2Zrj8qtAl9x9yoRNUuwFYOQdE5Bk4EM3cTyI=
=oESE
-----END PGP SIGNATURE-----

--qGV0fN9tzfkG3CxV--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130117190924.GC19645>