From owner-freebsd-ports@FreeBSD.ORG Thu Jan 17 22:22:21 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F3080EDF for ; Thu, 17 Jan 2013 22:22:20 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 822EB8FA for ; Thu, 17 Jan 2013 22:22:20 +0000 (UTC) Received: by mail-wi0-f170.google.com with SMTP id hq7so106392wib.3 for ; Thu, 17 Jan 2013 14:22:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=cwtrOcABBViFBiklTi6yv1jwG4lbBv6hrsqgYc4pIhw=; b=hacbv3gYJD6j6A3fkskRsywIdPZHhfzcIrVz3rsEzohjpOLF4T1lDafwvVD39zpLbt aKdL7SwJTgRhJrmUq91JbDJzldNB39p9EcxYTv+qYBoCAbWxFpecjhJ29FrHdDk8QMuo bcx5a95Y6QVZJrPEgnrr99EO85aGbPC9QtCF1lMTDW76lyPrcSTkCWOEOlkH9MFvphFv FQmP0D4kbBdncAb4ogVUCQ8kVuFsVdudCphV644H5CDesKQQkH+sKq+1HBkYAoBkpOkG kiTFbtzLjQirswkD1agDLBoarcjip0NPg0rNXICTnjH8nPe19mQqOZh5gBHrgGps/+Eh a6Xw== MIME-Version: 1.0 X-Received: by 10.194.23.37 with SMTP id j5mr10895473wjf.28.1358461338065; Thu, 17 Jan 2013 14:22:18 -0800 (PST) Received: by 10.216.172.197 with HTTP; Thu, 17 Jan 2013 14:22:17 -0800 (PST) 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> Date: Fri, 18 Jan 2013 00:22:17 +0200 Message-ID: Subject: Re: can't find pkgng command From: Kimmo Paasiala To: Chip Camden Content-Type: text/plain; charset=UTF-8 Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2013 22:22:21 -0000 On Thu, Jan 17, 2013 at 9:09 PM, Chip Camden wrote: > Quoth John Marino on Thursday, 17 January 2013: >> pkg which >> >> On 1/17/2013 15:08, Robert Huff wrote: >> > >> > Under the old package system "pkg_info -W' 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