From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 2 18:29:12 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C495FEF1 for ; Wed, 2 Jan 2013 18:29:12 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 583D91C3B for ; Wed, 2 Jan 2013 18:29:12 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.6/8.14.5) with ESMTP id r02IStNF069241 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 2 Jan 2013 18:28:55 GMT (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.7.3 smtp.infracaninophile.co.uk r02IStNF069241 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1357151335; bh=oXXriNLg2J41h+0rCrjWQoGP1vQnAZ3cE2N6gniKXpE=; h=Date:From:To:CC:Subject:References:In-Reply-To; z=Date:=20Wed,=2002=20Jan=202013=2018:28:47=20+0000|From:=20Matthew =20Seaman=20|To:=20rank1seeker@gm ail.com|CC:=20hackers@freebsd.org|Subject:=20Re:=20Vice=20versa=20 of=20'pkg_info=20-W'|References:=20<20130102.175558.373.6@DOMY-PC> |In-Reply-To:=20<20130102.175558.373.6@DOMY-PC>; b=SuYYM2mbBDhWr5hlwGKdyFsq2qwKiicnJM+AldGU2O/6tuiuoa0bTwTqaqrGVX15V l0VrjCg4yUS9YcSuU5O2I7/q0YbCcKo3RBkNrg9YrJXn70d6V0lw1yQjQzIlqpRWUV iQgiZccaauGTqIwQbgh5Aq1UdMPs4pavgeYgC5lk= Message-ID: <50E47C5F.2080508@infracaninophile.co.uk> Date: Wed, 02 Jan 2013 18:28:47 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: rank1seeker@gmail.com Subject: Re: Vice versa of 'pkg_info -W' References: <20130102.175558.373.6@DOMY-PC> In-Reply-To: <20130102.175558.373.6@DOMY-PC> X-Enigmail-Version: 1.4.6 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6A902127E7A5D669A6CE02D4" X-Virus-Scanned: clamav-milter 0.97.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL,URI_OBFU_WWW autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 18:29:12 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6A902127E7A5D669A6CE02D4 Content-Type: text/plain; charset=windows-1250 Content-Transfer-Encoding: quoted-printable On 02/01/2013 17:55, rank1seeker@gmail.com wrote: > For example: > # pkg_info -W /usr/local/bin/lynx > /usr/local/bin/lynx was installed by package lynx-2.8.7.2,1 >=20 > # pkg_deinstall lynx-2.8.7.2,1 >=20 > # pkg_info -W /usr/local/bin/lynx > pkg_info: /usr/local/bin/lynx: file cannot be found >=20 >=20 > 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? Well, in the case of lynx, where the filename of the executable matches the package name, it's fairly simple: lucid-nonsense:/usr/ports:% cd /usr/ports lucid-nonsense:/usr/ports:% make search name=3Dlynx Port: ja-lynx-2.8.7.r1 Path: /usr/ports/japanese/lynx Info: A terminal-based World-Wide Web Client with multi-byte modification= Maint: ports@FreeBSD.org B-deps: libiconv-1.14 R-deps: libiconv-1.14 WWW: http://lynx.isc.org/current/ Port: ja-lynx-2.8.8.d3 Path: /usr/ports/japanese/lynx-current Info: A terminal-based World-Wide Web Client with multi-byte modification (development version) Maint: ports@FreeBSD.org B-deps: libiconv-1.14 R-deps: libiconv-1.14 WWW: http://lynx.isc.org/current/ Port: lynx-2.8.7.2,1 Path: /usr/ports/www/lynx Info: A non-graphical, text-based World-Wide Web client Maint: jharris@widomaker.com B-deps: gettext-0.18.1.1 libiconv-1.14 openssl-1.0.1_4 R-deps: gettext-0.18.1.1 libiconv-1.14 openssl-1.0.1_4 WWW: http://lynx.isc.org/ Port: lynx-2.8.8d12_1 Path: /usr/ports/www/lynx-current Info: A non-graphical, text-based World-Wide Web client Maint: johans@FreeBSD.org B-deps: gettext-0.18.1.1 libiconv-1.14 libidn-1.25 openssl-1.0.1_4 pkgconf-0.8.9 R-deps: gettext-0.18.1.1 libiconv-1.14 libidn-1.25 mime-support-3.52.2 openssl-1.0.1_4 pkgconf-0.8.9 WWW: http://lynx.isc.org/current/ However, in the general case, there isn't (as far as I know) a database of all of the files installed by all of the packages that can be generated from the ports. I believe bapt@ had plans to gather this sort of data on the yet-to-be-commisioned pkgng build cluster. As that's currently out of action as a consequence of the security incident, and the whole package building system is being revised, I don't know if that's still on the cards or likely to be implemented any time soon. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk --------------enig6A902127E7A5D669A6CE02D4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlDkfGcACgkQ8Mjk52CukIyi8wCfYeJisMghedAuTj/0+jzbuVWs mycAn0MYl/jX0Tqo6Tbj7TG4XAEnQQul =/sQM -----END PGP SIGNATURE----- --------------enig6A902127E7A5D669A6CE02D4--