Debian findpkg

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.

Synopsis

  findpkg keyword

  findpkg -u | --update

Description

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

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

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 packages.debian.org.

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

   server=ftp.debian.de

   wgetopts="--quiet

   dist=unstable

   arch=mips

CVS.

Download.

config.