1dpkg-scanpackages(1)              dpkg suite              dpkg-scanpackages(1)
2
3
4

NAME

6       dpkg-scanpackages - create Packages index files
7

SYNOPSIS

9       dpkg-scanpackages [option...] binary-path [override-file [path-prefix]]
10       > Packages
11

DESCRIPTION

13       dpkg-scanpackages sorts through a tree of Debian  binary  packages  and
14       creates  a  Packages file, used by apt(8), dselect(1), etc, to tell the
15       user what packages are available for installation. These Packages files
16       are  the  same  as those found on Debian archive sites and CD-ROMs. You
17       might use dpkg-scanpackages yourself if making  a  directory  of  local
18       packages to install on a cluster of machines.
19
20       Note:  If  you  want to access the generated Packages file with apt you
21       will probably need to  compress  the  file  with  xz(1)  (generating  a
22       Packages.xz file), bzip2(1) (generating a Packages.bz2 file) or gzip(1)
23       (generating a Packages.gz  file).  apt  ignores  uncompressed  Packages
24       files except on local access (i.e.  file:// sources).
25
26       binary-path  is  the name of the tree of the binary packages to process
27       (for example, contrib/binary-i386).  It is best to make  this  relative
28       to  the root of the Debian archive, because every Filename field in the
29       new Packages file will start with this string.
30
31       override-file is the name of a file to read which contains  information
32       about  how  the  package  fits  into  the distribution (the file can be
33       compressed since dpkg 1.15.5); see deb-override(5).
34
35       path-prefix is an optional string  to  be  prepended  to  the  Filename
36       fields.
37
38       If  more  than one version of a package is found only the newest one is
39       included in the output. If they have the same version and  only  differ
40       in architecture only the first one found is used.
41

OPTIONS

43       -t, --type type
44              Scan for *.type packages, instead of *.deb.
45
46       -e, --extra-override file
47              Scan  file  to  find  supplementary  overrides  (the file can be
48              compressed since dpkg 1.15.5).   See  deb-extra-override(5)  for
49              more information on its format.
50
51       -a, --arch arch
52              Use  a pattern consisting of *_all.deb and *_arch.deb instead of
53              scanning for all debs.
54
55       -h, --hash hash-list
56              Only generate file hashes for the comma-specified list specified
57              (since  dpkg 1.17.14).  The default is to generate all currently
58              supported hashes.  Supported values: md5, sha1, sha256.
59
60       -m, --multiversion
61              Include all found packages in the output.
62
63       -M, --medium id-string
64              Add an X-Medium field containing the value id-string (since dpkg
65              1.15.5).   This  field  is  required  if  you  want  to generate
66              Packages.cd files for  use  by  the  multicd  access  method  of
67              dselect.
68
69       -?, --help
70              Show the usage message and exit.
71
72       --version
73              Show the version and exit.
74

DIAGNOSTICS

76       dpkg-scanpackages  outputs  the  usual self-explanatory errors. It also
77       warns  about  packages  that  are  in  the  wrong   subdirectory,   are
78       duplicated,  have  a  Filename field in their control file, are missing
79       from the override file, or have maintainer substitutions which  do  not
80       take effect.
81

SEE ALSO

83       dpkg(1), dselect(1), deb-override(5), deb-extra-override(5),
84       dpkg-scansources(1).
85
86
87
881.18.25                           2018-06-26              dpkg-scanpackages(1)
Impressum