dpkg-scansources.1 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. .\" dpkg manual page - dpkg-scansources(1)
  2. .\"
  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>
  6. .\"
  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.
  11. .\"
  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.
  16. .\"
  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/>.
  19. .
  20. .TH dpkg\-scansources 1 "2011-08-14" "Debian Project" "dpkg utilities"
  21. .SH NAME
  22. dpkg\-scansources \- create Sources index files
  23. .
  24. .SH SYNOPSIS
  25. .B dpkg\-scansources
  26. .RI [ option "...] " binary-dir
  27. .RI [ override-file
  28. .RI [ path-prefix ]]
  29. .B >
  30. .I Sources
  31. .
  32. .SH DESCRIPTION
  33. \fBdpkg\-scansources\fR scans the given \fIbinary-dir\fR for \fI.dsc\fR files.
  34. These are used to create a Debian source index, which is output to
  35. stdout.
  36. .PP
  37. The \fIoverride-file\fR, if given, is used to set priorities in the resulting
  38. index records and to override the maintainer field given in the \fI.dsc\fR
  39. files.
  40. The file can be compressed (since dpkg 1.15.5).
  41. See
  42. .BR deb\-override (5)
  43. for the format of this file. Note: Since
  44. the override file is indexed by binary, not source packages, there's a bit
  45. of a problem here. The current implementation uses the highest priority of
  46. all the binary packages produced by a \fI.dsc\fR file for the priority of the
  47. source package, and the override entry for the first binary package listed
  48. in the \fI.dsc\fR file to modify maintainer information. This might change.
  49. .PP
  50. The \fIpath-prefix\fR, if given, is prepended to the directory field in the
  51. generated source index. You generally use this to make the directory
  52. fields contain the path from the top of the Debian archive hierarchy.
  53. .
  54. .PP
  55. .B Note:
  56. If you want to access the generated Sources file with
  57. .BR apt (8)
  58. you will probably need to compress the file with
  59. .BR gzip (1)
  60. (generating a Sources.gz file). apt ignores uncompressed Sources files
  61. except on local access (i.e.
  62. .B file://
  63. sources).
  64. .
  65. .SH OPTIONS
  66. .IP "\fB\-n\fR, \fB\-\-no\-sort\fR" 4
  67. Don't sort the index records. Normally they are sorted by source package
  68. name.
  69. .TP
  70. .IP "\fB\-e\fR, \fB\-\-extra\-override\fR \fIfile\fP" 4
  71. Scan \fIfile\fP to find supplementary overrides (since dpkg 1.15.4;
  72. the file can be compressed since dpkg 1.15.5).
  73. See
  74. .BR deb\-extra\-override (5)
  75. for more information on its format.
  76. .IP "\fB\-s\fR, \fB\-\-source\-override\fR \fIfile\fR" 4
  77. Use \fIfile\fR as the source override file (the file can be compressed
  78. since dpkg 1.15.5).
  79. The default is the name of the override file you specified with \fI.src\fR
  80. appended.
  81. .sp
  82. The source override file is in a different format from the binary override
  83. file. It contains only two whitespace separated fields, the first is the
  84. source package name and the second is the section. Blank lines and comment
  85. lines are ignored in the normal manner. If a package appears in both files
  86. the source override takes precedence for setting the section.
  87. .IP "\fB\-\-debug\fR" 4
  88. Turn debugging on.
  89. .IP "\fB\-\-help\fR" 4
  90. Show the usage message and exit.
  91. .IP "\fB\-\-version\fR" 4
  92. Show the version and exit.
  93. .
  94. .SH SEE ALSO
  95. .BR deb\-override (5),
  96. .BR deb\-extra\-override (5),
  97. .BR dpkg\-scanpackages (1).