#include <infodrom.style>

<page title="Infodrom Oldenburg Tools">

<h2>Debian findpkg</h2>

<p>I've used this tool for quite a while now and it's really a pity
that it is not included in Debian nor do I know where to include it
there.  Anyway, all it does is grep in a file for a given keyword and
update that file on demand.  Sound trivial, right?  It is.

<h3>Synopsis</h3>

<pre>
  findpkg keyword

  findpkg -u | --update
</pre>

<h3>Description</h3>

<p><code>findpkg -u</code> fetches a new Contents-\$(arch).gz file from
a server in the internet.  Please be warned (err advised) that wget is
used with only one address.  So if that server is down or not
reachable, no file would be fetched.  Currently it defaults to the
German server an the file from unstable.

<p><code>findpkg keyword</code> simply uses grep on that fetched file.
This will display all occurrences of a given file together with the
package it is coming from.  It's useful for this purpose and nothing
more.

<p>You can also display the content of a package you have not yet
installed since this tool is based on grep and each line also contains
the name of the package.  This is somewhat an offline version of some
of the functionality from <a href="http://packages.debian.org/">\
packages.debian.org</a>.</p>

<p>As of CVS version 1.4 you can overwrite some default variables with
<code>/etc/dpkg/findpkg.conf</code>.  An example is given below.</p>

<p><pre>
   # Server to fetch Contents file from
   server=ftp.debian.de

   # Additional options for wget
   wgetopts="--quiet

   # Distribution to use
   dist=unstable

   # Use mips architecture as base regardless of the currently used
   # architecture
   arch=mips
</pre></p>

<p><a href="http://cvs.infodrom.org/scripts/findpkg?cvsroot=infodrom">CVS</a>.
<p><a href="http://cvs.infodrom.org/~checkout~/scripts/findpkg?rev=HEAD&content-type=text/plain&cvsroot=infodrom">Download</a>.
<p><a href="http://cvs.infodrom.org/~checkout~/scripts/findpkg.conf?rev=HEAD&content-type=text/plain&cvsroot=infodrom">config</a>.

</page>

# Local variables:
# mode: indented-text
# end:
