can't find pkgng command
Kimmo Paasiala
kpaasial at gmail.com
Thu Jan 17 22:22:21 UTC 2013
On Thu, Jan 17, 2013 at 9:09 PM, Chip Camden
<sterling at 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 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
>
>
>
That is expected, the base system (/bin /usr/bin etc.) is not included
in the pkg database.
-Kimmo
More information about the freebsd-ports
mailing list