From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 3 17:28:06 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BCFC0CB5 for ; Thu, 3 Jan 2013 17:28:06 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id 685496A4 for ; Thu, 3 Jan 2013 17:28:05 +0000 (UTC) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.5/8.14.5/NETPLEX) with ESMTP id r03HN52u009030; Thu, 3 Jan 2013 12:23:06 -0500 X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.2.7 (mail.netplex.net [204.213.176.10]); Thu, 03 Jan 2013 12:23:06 -0500 (EST) Date: Thu, 3 Jan 2013 12:23:05 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Lars Engels Subject: Re: Vice versa of =?UTF-8?Q?=27pkg=5Finfo=20-W=27?= In-Reply-To: <4c7fa9aab51f5b62f6b2b35e6e8c03c9@mail.0x20.net> Message-ID: References: <20130102.175558.373.6@DOMY-PC> <4c7fa9aab51f5b62f6b2b35e6e8c03c9@mail.0x20.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Daniel Eischen List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 17:28:06 -0000 On Thu, 3 Jan 2013, Lars Engels wrote: > Am 02.01.2013 18:55, schrieb rank1seeker@gmail.com: >> For example: >> # pkg_info -W /usr/local/bin/lynx >> /usr/local/bin/lynx was installed by package lynx-2.8.7.2,1 >> >> # pkg_deinstall lynx-2.8.7.2,1 >> >> # pkg_info -W /usr/local/bin/lynx >> pkg_info: /usr/local/bin/lynx: file cannot be found >> >> >> As you can figure it out, I want a reverse method, that is ... >> If I want to have '/usr/local/bin/lynx' installed, which port >> origin(s), would install it? > > > I use porgle for that: > > http://www.secnetix.de/tools/porgle/porgle.py For non-pkgng, what's wrong with pkgdb and pkg_which (portupgrade)? # pkgdb -o `pkg_which /usr/local/bin/foo` And for pkgng: # pkg which -o /usr/local/bin/foo Or am I missing something? -- DE