Re: searching packages? pkg_grep?

2007-08-10 Thread Edd Barrett
On 09/08/07, Bernd Ahlers <[EMAIL PROTECTED]> wrote:
> Read the pkg_info(1) manpage and look for the -Q option.

I've been looking for this functionality for ages!

Thanks!


-- 
Best Regards

Edd

---
http://students.dec.bournemouth.ac.uk/ebarrett



Re: searching packages? pkg_grep?

2007-08-10 Thread John Wright
On Thu, Aug 09, 2007 at 11:24:45AM -0700, John N. Brahy wrote:
> > I use alias pkg_search="echo ls | ftp -a \$PKG_PATH | sed 's/.*\ //g'
> | grep -i".
> 
> That's exactly what I was looking for.

Note that you should be able to find an index.txt file in the packages
directory which I've found to be quicker to fetch than an ls.



Re: searching packages? pkg_grep?

2007-08-09 Thread Adriaan
On 8/9/07, John N. Brahy <[EMAIL PROTECTED]> wrote:
> If I don't have ports installed, is there a way to do a search of all
> the available package names to find one I'm looking for?
>
>
>
> Something like a pkg_grep...
>
>

I use this .".netrc" (see man ftp) file to retrieve a listing of
snapshot packages

---
machine ftp.stacken.kth.se login anonymous password [EMAIL PROTECTED]

macdef init
prompt off
epsv4 off
preserve on
get /pub/OpenBSD/snapshots/i386/MD5 MD5-stacken
ls /pub/OpenBSD/snapshots/i386/ "| cut -b30- >latest-stacken"
ls /pub/OpenBSD/snapshots/packages/i386/ "| cut -b30- >latest-pkg-stacken"
quit


The file latest-pkg-stacken is then easy to search

=Adriaan=



Re: searching packages? pkg_grep?

2007-08-09 Thread John N. Brahy
> I use alias pkg_search="echo ls | ftp -a \$PKG_PATH | sed 's/.*\ //g'
| grep -i".

That's exactly what I was looking for.

Thank you!



Re: searching packages? pkg_grep?

2007-08-09 Thread James Turner
On Thu, Aug 09, 2007 at 09:49:27AM -0700, John N. Brahy wrote:
> If I don't have ports installed, is there a way to do a search of all
> the available package names to find one I'm looking for?
> 
> 
> 
> Something like a pkg_grep...

I use alias pkg_search="echo ls | ftp -a \$PKG_PATH | sed 's/.*\ //g' \
| grep -i".

-- 
James Turner
BSD Group Consulting
http://www.bsdgroup.org



Re: searching packages? pkg_grep?

2007-08-09 Thread Bernd Ahlers
John N. Brahy [Thu, Aug 09, 2007 at 09:49:27AM -0700] wrote:
>If I don't have ports installed, is there a way to do a search of all
>the available package names to find one I'm looking for?
>
>
>
>Something like a pkg_grep...
>
Read the pkg_info(1) manpage and look for the -Q option.

Bernd



Re: searching packages? pkg_grep?

2007-08-09 Thread Antti Harri

On Thu, 9 Aug 2007, John N. Brahy wrote:


If I don't have ports installed, is there a way to do a search of all
the available package names to find one I'm looking for?

Something like a pkg_grep...


Hi,

is pkg_mklocatedb(1) what you're looking for?

--
Antti Harri



searching packages? pkg_grep?

2007-08-09 Thread John N. Brahy
If I don't have ports installed, is there a way to do a search of all
the available package names to find one I'm looking for?



Something like a pkg_grep...