On Thu, Jan 17, 2013 at 9:09 PM, Chip Camden <sterl...@camdensoftware.com> wrote: > 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@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-ports >> > To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org" >> _______________________________________________ >> freebsd-ports@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ports >> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@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 > > >
That is expected, the base system (/bin /usr/bin etc.) is not included in the pkg database. -Kimmo _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"