Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jan 2013 00:22:17 +0200
From:      Kimmo Paasiala <kpaasial@gmail.com>
To:        Chip Camden <sterling@camdensoftware.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: can't find pkgng command
Message-ID:  <CA%2B7WWSesLEVcy8yDNCRyqyF3=2_uk2r1T58Z2-=gex8bJsQPmA@mail.gmail.com>
In-Reply-To: <20130117190924.GC19645@libertas.local.camdensoftware.com>
References:  <20728.1478.423219.871557@jerusalem.litteratus.org> <50F8061E.9030306@marino.st> <20130117190924.GC19645@libertas.local.camdensoftware.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 17, 2013 at 9:09 PM, Chip Camden
<sterling@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-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
>
>
>

That is expected, the base system (/bin /usr/bin etc.) is not included
in the pkg database.

-Kimmo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B7WWSesLEVcy8yDNCRyqyF3=2_uk2r1T58Z2-=gex8bJsQPmA>