1 # dpkg manual page - dpkg-scanpackages(1)
3 # Copyright © 1996 Michael Shields <shields@crosslink.net>
4 # Copyright © 2006 Frank Lichtenheld <djpig@debian.org>
5 # Copyright © 2007, 2009, 2011-2014 Guillem Jover <guillem@debian.org>
6 # Copyright © 2009 Raphaël Hertzog <hertzog@debian.org>
8 # This is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
25 dpkg-scanpackages - create Packages index files
30 [I<option>...] I<binary-path>
39 sorts through a tree of Debian binary packages and creates a Packages
43 etc, to tell the user what packages are available for installation. These
44 Packages files are the same as those found on Debian archive sites
45 and CD-ROMs. You might use
47 yourself if making a directory of local packages to install on a cluster
51 If you want to access the generated Packages file with
53 you will probably need to compress the file with
55 (generating a Packages.xz file),
57 (generating a Packages.bz2 file) or
59 (generating a Packages.gz file).
61 ignores uncompressed Packages files except on local access (i.e.
66 is the name of the tree of the binary packages to process (for example,
67 B<contrib/binary-i386>).
68 It is best to make this relative to the root of the Debian archive,
69 because every Filename field in the new Packages file will start with
73 is the name of a file to read which contains information about how the
74 package fits into the distribution (the file can be compressed
75 since dpkg 1.15.5); see
79 is an optional string to be prepended to the Filename fields.
81 If more than one version of a package is found only the newest one
82 is included in the output. If they have the same version and only
83 differ in architecture only the first one found is used.
89 =item B<-t>, B<--type> I<type>
91 Scan for *.I<type> packages, instead of *.deb.
93 =item B<-e>, B<--extra-override> I<file>
95 Scan I<file> to find supplementary overrides (the file can be
96 compressed since dpkg 1.15.5).
98 B<deb-extra-override>(5)
99 for more information on its format.
101 =item B<-a>, B<--arch> I<arch>
103 Use a pattern consisting of I<*_all.deb> and I<*_arch.deb> instead of
104 scanning for all debs.
106 =item B<-h>, B<--hash> I<hash-list>
108 Only generate file hashes for the comma-specified list specified
109 (since dpkg 1.17.14).
110 The default is to generate all currently supported hashes.
111 Supported values: B<md5>, B<sha1>, B<sha256>.
113 =item B<-m>, B<--multiversion>
115 Include all found packages in the output.
117 =item B<-M>, B<--medium> I<id-string>
119 Add an B<X-Medium> field containing the value I<id-string>
121 This field is required if you want to generate B<Packages.cd> files
122 for use by the B<media> access method of B<dselect>.
124 =item B<-?>, B<--help>
126 Show the usage message and exit.
130 Show the version and exit.
140 Sets the color mode (since dpkg 1.18.5).
141 The currently accepted values are: B<auto> (default), B<always> and
146 If set, it will be used to decide whether to activate Native Language Support,
147 also known as internationalization (or i18n) support (since dpkg 1.19.0).
148 The accepted values are: B<0> and B<1> (default).
155 outputs the usual self-explanatory errors. It also warns about packages
156 that are in the wrong subdirectory, are duplicated, have a Filename
157 field in their control file, are missing from the override file, or have
158 maintainer substitutions which do not take effect.
165 B<deb-extra-override>(5),
166 B<dpkg-scansources>(1).