X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=templates%2Fcontents;h=1021da450cd8cc429f96603baaf167055753a6d9;hb=4d01e28a80b0fa8dae0a0395201469eab2e799e0;hp=1fd59187b7a1090287d18d9cecc9a20e02e20392;hpb=603d8ace7d4f942c999c29556bde38ec2516b9a8;p=dak.git diff --git a/templates/contents b/templates/contents index 1fd59187..1021da45 100644 --- a/templates/contents +++ b/templates/contents @@ -10,23 +10,26 @@ When a file is contained in more than one package, all packages are listed. When a directory is contained in more than one package, only the first is listed. -The best way to search quickly for a file is with the Unix `grep' -utility, as in `grep CONTENTS': - - $ grep nose Contents - etc/nosendfile net/sendfile - usr/X11R6/bin/noseguy x11/xscreensaver - usr/X11R6/man/man1/noseguy.1x.gz x11/xscreensaver - usr/doc/examples/ucbmpeg/mpeg_encode/nosearch.param graphics/ucbmpeg - usr/lib/cfengine/bin/noseyparker admin/cfengine +As all Contents files are shipped compressed, the best way to search quickly +for a file is with the Unix `zgrep' utility, as in: + `zgrep CONTENTSFILE.gz': + + $ zgrep -i debian/ Contents-amd64.gz + usr/share/IlohaMail/debian/Ilohamail.apache web/ilohamail + usr/share/R/debian/r-cran.mk devel/r-base-dev + usr/share/apt-listbugs/debian/apt_preferences.rb admin/apt-listbugs + usr/share/apt-listbugs/debian/bts.rb admin/apt-listbugs + usr/share/apt-listbugs/debian/btssoap.rb admin/apt-listbugs + usr/share/apt-listbugs/debian/bug.rb admin/apt-listbugs + usr/share/apt-listbugs/debian/mytempfile.rb admin/apt-listbugs This list contains files in all packages, even though not all of the packages are installed on an actual system at once. If you want to find out which packages on an installed Debian system provide a particular file, you can use `dpkg --search ': - $ dpkg --search /usr/bin/dselect - dpkg: /usr/bin/dselect + $ dpkg --search apt-get + apt: /usr/bin/apt-get FILE LOCATION