searching packages? pkg_grep?

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

searching packages? pkg_grep?

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...

Reply | Threaded
Open this post in threaded view
|

Re: searching packages? pkg_grep?

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

Reply | Threaded
Open this post in threaded view
|

Re: searching packages? pkg_grep?

Bernd Ahlers
In reply to this post by John N. Brahy
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

Reply | Threaded
Open this post in threaded view
|

Re: searching packages? pkg_grep?

James Turner-7
In reply to this post by John N. Brahy
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

Reply | Threaded
Open this post in threaded view
|

Re: searching packages? pkg_grep?

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!

Reply | Threaded
Open this post in threaded view
|

Re: searching packages? pkg_grep?

Adriaan Misc
In reply to this post by John N. Brahy
On 8/9/07, John N. Brahy <[hidden email]> 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 [hidden email]

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=

Reply | Threaded
Open this post in threaded view
|

Re: searching packages? pkg_grep?

John Wright-6
In reply to this post by John N. Brahy
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.

Reply | Threaded
Open this post in threaded view
|

Re: searching packages? pkg_grep?

Edd Barrett
In reply to this post by Bernd Ahlers
On 09/08/07, Bernd Ahlers <[hidden email]> 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