can't find pkgng command

Chip Camden sterling at camdensoftware.com
Thu Jan 17 22:12:32 UTC 2013


Quoth John Marino on Thursday, 17 January 2013:
> pkg which <filename>
> 
> 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 at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> > To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at 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



-- 
.O. | Sterling (Chip) Camden      | http://camdensoftware.com
..O | sterling at camdensoftware.com | http://chipsquips.com
OOO | 2048R/D6DBAF91              | http://chipstips.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130117/b574da66/attachment.sig>


More information about the freebsd-ports mailing list