1 # dpkg manual page - dpkg-scansources(1)
3 # Copyright © 2005 Roderick Schertler <roderick@argon.org>
4 # Copyright © 2006 Frank Lichtenheld <djpig@debian.org>
5 # Copyright © 2009 Raphaël Hertzog <hertzog@debian.org>
7 # This is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # This is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <https://www.gnu.org/licenses/>.
24 dpkg-scansources - create Sources index files
29 [I<option>...] I<binary-dir>
37 B<dpkg-scansources> scans the given I<binary-dir> for I<.dsc> files.
38 These are used to create a Debian source index, which is output to
41 The I<override-file>, if given, is used to set priorities in the resulting
42 index stanzas and to override the maintainer field given in the I<.dsc>
44 The file can be compressed (since dpkg 1.15.5).
47 for the format of this file.
50 the override file is indexed by binary, not source packages, there's a bit
52 The current implementation uses the highest priority of
53 all the binary packages produced by a I<.dsc> file for the priority of the
54 source package, and the override entry for the first binary package listed
55 in the I<.dsc> file to modify maintainer information.
58 The I<path-prefix>, if given, is prepended to the directory field in the
59 generated source index.
60 You generally use this to make the directory
61 fields contain the path from the top of the Debian archive hierarchy.
64 If you want to access the generated Sources file with
66 you will probably need to compress the file with
68 (generating a Sources.gz file).
70 ignores uncompressed Sources files except on local access (i.e.
78 =item B<-n>, B<--no-sort>
80 Do not sort the index stanzas.
81 Normally they are sorted by source package name.
83 =item B<-e>, B<--extra-override> I<file>
85 Scan I<file> to find supplementary overrides (since dpkg 1.15.4;
86 the file can be compressed since dpkg 1.15.5).
88 L<deb-extra-override(5)>
89 for more information on its format.
91 =item B<-s>, B<--source-override> I<file>
93 Use I<file> as the source override file (the file can be compressed
95 The default is the name of the override file you specified with I<.src>
98 The source override file is in a different format from the binary override
100 It contains only two whitespace separated fields,
101 the first is the source package name and the second is the section.
102 Blank lines and comment lines are ignored in the normal manner.
103 If a package appears in both files
104 the source override takes precedence for setting the section.
112 Show the usage message and exit.
116 Show the version and exit.
126 Sets the color mode (since dpkg 1.18.5).
127 The currently accepted values are: B<auto> (default), B<always> and
132 If set, it will be used to decide whether to activate Native Language Support,
133 also known as internationalization (or i18n) support (since dpkg 1.19.0).
134 The accepted values are: B<0> and B<1> (default).
141 L<deb-extra-override(5)>,
142 L<dpkg-scanpackages(1)>.