From owner-freebsd-ports@freebsd.org Thu Oct 4 12:48:10 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 073DF10A8E45 for ; Thu, 4 Oct 2018 12:48:10 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B2F3294A60 for ; Thu, 4 Oct 2018 12:48:09 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from ivaldir.etoilebsd.net (etoilebsd.net [178.32.217.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 9326F149BA for ; Thu, 4 Oct 2018 12:48:09 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: by ivaldir.etoilebsd.net (Postfix, from userid 1001) id BD0738A6B9; Thu, 4 Oct 2018 14:48:08 +0200 (CEST) Date: Thu, 4 Oct 2018 14:48:08 +0200 From: Baptiste Daroussin To: freebsd-ports@freebsd.org Subject: Re: how to do pkg_info -W without pkg_info? Message-ID: <20181004124808.ty3h7luuoslm3j7p@ivaldir.net> References: <20180930172937.GA29315@sh4-5.1blu.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ezspvje6pbqmpkip" Content-Disposition: inline In-Reply-To: <20180930172937.GA29315@sh4-5.1blu.de> User-Agent: NeoMutt/20180716 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Oct 2018 12:48:10 -0000 --ezspvje6pbqmpkip Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 30, 2018 at 07:29:37PM +0200, Matthias Apitz wrote: > El d=EDa Sunday, September 30, 2018 a las 11:09:20AM -0600, @lbutlr escri= bi=F3: >=20 > > I would like to find out what port installed a specific file, and in se= arching I found the suggestion, from 2010, to use > >=20 > > pkg_info -W > >=20 > > But on FreeBSD 11.1-p4-RELEASE with postmaster, there is no pkg_info an= d `pkg info` doesn't have a -W flag nor, apparently, a way to check for whe= re a file came from. > >=20 > >=20 >=20 > $ which gcc > /usr/local/bin/gcc > $ pkg which /usr/local/bin/gcc > /usr/local/bin/gcc was installed by package gcc-4.9.4 >=20 > $ man pkg-which >=20 >=20 > matthias >=20 pkg which -p gcc :) Bapt --ezspvje6pbqmpkip Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAlu2DAYACgkQY4mL3PG3 Plo4BBAA2a2xn+Ld3iUgp4e0vI+2dog1TnYhRydmTfNXj+DwpiiSFZrwhk3ULxGY 61DobZDL4S8NTkQDlzge+EZek0yKeInhk0tntFmZYP7eYhe8hz0itzovPCUFNbQU ns1fUNEtfYTRACFRjFO+BJtOZGShAnj7r1DuHbaT0//+7HtxsVTj+AZ1vqb3EzMj DYxd7Sc6u2F1tWpDiDvC50s6gz92Eyj40hBug2P82esPhu/xbWD+5vJF2Gb3E4K8 EmN/mOzHMc6deQkIyEydHGDfK32FshXHC7+atMFcvkHsPH2a+v/mDBRQzvPmwrch bkvD1HlWzrXXfQCYMwjEjvGjMDL3/NzFXB2koPEuEk3+yWmZND5V133wbUbjp4VC pUiSKOCdQbWVli9TKSO70b/CY+KAZu9MpK8//7XBfV+knklT7REL0uALFsM/qbkx uNTvDiEN9HxQl4IUh+59laaSQgD56RogkuiP7AybPC1OBUyZ4XsWkOwQ2s4emLQt UGf6sIdrDF8y9cqGBqsx1IfD/gQUsScGLMK/emirtEpRuph5UtzpvfK+G62sBQV4 YX6vI1raRfLulQKKI2H62Ivq7iwN6xzTV+IdbWchqRvQwjIFvKKqM6eOO36FP9UP lLhBYquJbR/xSpdR7EWfeZKe9HyDgS00GhBrSp7982a1JNLVRB0= =L68f -----END PGP SIGNATURE----- --ezspvje6pbqmpkip--