Date: Fri, 13 Jun 2008 22:10:43 -0400 (EDT) From: Chris Hill <chris@monochrome.org> To: Gilles <gilles.ganault@free.fr> Cc: freebsd-questions@freebsd.org Subject: Re: [Ports] How to find where a port is located? Message-ID: <20080613220813.X70655@tripel.monochrome.org> In-Reply-To: <96d454pk73ornom636es6caii1cl8h29dt@4ax.com> References: <96d454pk73ornom636es6caii1cl8h29dt@4ax.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 13 Jun 2008, Gilles wrote: > Hello > > Currently, to find where a software is located under /usr/ports/, I > rune the "find" command. Is there a database that I could query > instead so that it gives out the whole path to that the application? I wrote a lame-ass script to do this: $ more /home/chris/bin/findport #!/bin/sh # # Find a port whose name contains the string supplied as argument # prev_dir=`pwd` cd /usr/ports # make search key=$1 | grep Path | grep -v deps | grep -i $1 # cd $prev_dir HTH. -- Chris Hill chris@monochrome.org ** [ Busy Expunging <|> ]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080613220813.X70655>