From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 17:52:38 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7491116A4CE for ; Wed, 23 Mar 2005 17:52:38 +0000 (GMT) Received: from smtp-out1.blueyonder.co.uk (smtp-out1.blueyonder.co.uk [195.188.213.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22C8743D31 for ; Wed, 23 Mar 2005 17:52:37 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [82.41.37.55] ([82.41.37.55]) by smtp-out1.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Wed, 23 Mar 2005 17:53:13 +0000 Message-ID: <4241ACE3.5080304@dial.pipex.com> Date: Wed, 23 Mar 2005 17:52:35 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7) Gecko/20040627 X-Accept-Language: en, en-us MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20050323173313.GA94954@rajarajan.homeunix.net> <200503230936.54842.ringworm01@gmail.com> In-Reply-To: <200503230936.54842.ringworm01@gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Mar 2005 17:53:13.0444 (UTC) FILETIME=[2F140A40:01C52FD1] Subject: Re: how to find which port has a given executable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2005 17:52:38 -0000 Michael C. Shultz wrote: >>Is it possible to find out which port has a particular >>executable/script file ? It took me some time to find >>out if the script epstopdf was in latex or tex or tetex! >> >>Any easy way to do this ? >> >> >Here is an example: > >pkg_info -W /usr/X11R6/bin/nedit >/usr/X11R6/bin/nedit was installed by package nedit-5.5 > > I think the question might have been about a file from port which wasn't yet installed, in which case it's a little more time consuming: % find /usr/ports -type f -name pkg-plist -exec egrep -H epstopdf {} \; /usr/ports/chinese/cwtex/pkg-plist:share/texmf/cwtex/help/epstopdf.txt /usr/ports/print/teTeX-base/pkg-plist:bin/epstopdf /usr/ports/print/teTeX-texmf/pkg-plist:%%TEXMFDISTDIR%%/doc/help/Catalogue/entries/epstopdf.html /usr/ports/print/teTeX-texmf/pkg-plist:%%TEXMFDISTDIR%%/tex/latex/oberdiek/epstopdf.sty /usr/ports/textproc/rubber/pkg-plist:%%PYTHON_SITELIBDIR%%/rubber/graphics/epstopdf.py /usr/ports/textproc/rubber/pkg-plist:%%PYTHON_SITELIBDIR%%/rubber/graphics/epstopdf.pyc /usr/ports/japanese/ptex-common/pkg-plist:bin/epstopdf --Alex