[Ports] How to find where a port is located?
Chris Hill
chris at monochrome.org
Sat Jun 14 02:10:47 UTC 2008
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 at monochrome.org
** [ Busy Expunging <|> ]
More information about the freebsd-questions
mailing list