1dpkg-scansources(1) dpkg suite dpkg-scansources(1)
2
3
4
6 dpkg-scansources - create Sources index files
7
9 dpkg-scansources [option...] binary-dir [override-file [path-prefix]] >
10 Sources
11
13 dpkg-scansources scans the given binary-dir for .dsc files. These are
14 used to create a Debian source index, which is output to stdout.
15
16 The override-file, if given, is used to set priorities in the resulting
17 index records and to override the maintainer field given in the .dsc
18 files. The file can be compressed (since dpkg 1.15.5). See
19 deb-override(5) for the format of this file. Note: Since the override
20 file is indexed by binary, not source packages, there's a bit of a
21 problem here. The current implementation uses the highest priority of
22 all the binary packages produced by a .dsc file for the priority of the
23 source package, and the override entry for the first binary package
24 listed in the .dsc file to modify maintainer information. This might
25 change.
26
27 The path-prefix, if given, is prepended to the directory field in the
28 generated source index. You generally use this to make the directory
29 fields contain the path from the top of the Debian archive hierarchy.
30
31 Note: If you want to access the generated Sources file with apt(8) you
32 will probably need to compress the file with gzip(1) (generating a
33 Sources.gz file). apt ignores uncompressed Sources files except on
34 local access (i.e. file:// sources).
35
37 -n, --no-sort
38 Don't sort the index records. Normally they are sorted by source
39 package name.
40
41
42 -e, --extra-override file
43 Scan file to find supplementary overrides (since dpkg
44 1.15.4; the file can be compressed since dpkg 1.15.5). See
45 deb-extra-override(5) for more information on its format.
46
47 -s, --source-override file
48 Use file as the source override file (the file can be
49 compressed since dpkg 1.15.5). The default is the name of
50 the override file you specified with .src appended.
51
52 The source override file is in a different format from the
53 binary override file. It contains only two whitespace
54 separated fields, the first is the source package name and
55 the second is the section. Blank lines and comment lines are
56 ignored in the normal manner. If a package appears in both
57 files the source override takes precedence for setting the
58 section.
59
60 --debug
61 Turn debugging on.
62
63 --help
64 Show the usage message and exit.
65
66 --version
67 Show the version and exit.
68
70 DPKG_COLORS
71 Sets the color mode (since dpkg 1.18.5). The currently
72 accepted values are: auto (default), always and never.
73
74 DPKG_NLS
75 If set, it will be used to decide whether to activate
76 Native Language Support, also known as
77 internationalization (or i18n) support (since dpkg
78 1.19.0). The accepted values are: 0 and 1 (default).
79
81 deb-override(5), deb-extra-override(5), dpkg-scanpackages(1).
82
83
84
851.19.7 2019-06-03 dpkg-scansources(1)