dpkg-scanpackages.1 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. .\" dpkg manual page - dpkg-scanpackages(1)
  2. .\"
  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>
  7. .\"
  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.
  12. .\"
  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.
  17. .\"
  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/>.
  20. .
  21. .TH dpkg\-scanpackages 1 "2012-05-07" "Debian Project" "dpkg utilities"
  22. .SH NAME
  23. dpkg\-scanpackages \- create Packages index files
  24. .
  25. .SH SYNOPSIS
  26. .B dpkg\-scanpackages
  27. .RI [ option "...] " binary-dir
  28. .RI [ override-file
  29. .RI [ path-prefix ]]
  30. .B >
  31. .I Packages
  32. .
  33. .SH DESCRIPTION
  34. .B dpkg\-scanpackages
  35. sorts through a tree of Debian binary packages and creates a Packages
  36. file, used by
  37. .BR apt (8),
  38. .BR dselect (1),
  39. etc, to tell the user what packages are available for installation. These
  40. Packages files are the same as those found on Debian archive sites
  41. and CD-ROMs. You might use
  42. .B dpkg\-scanpackages
  43. yourself if making a directory of local packages to install on a cluster
  44. of machines.
  45. .PP
  46. .B Note:
  47. If you want to access the generated Packages file with
  48. .B apt
  49. you will probably need to compress the file with
  50. .BR xz (1)
  51. (generating a Packages.xz file),
  52. .BR bzip2 (1)
  53. (generating a Packages.bz2 file) or
  54. .BR gzip (1)
  55. (generating a Packages.gz file). apt ignores uncompressed Packages
  56. files except on local access (i.e.
  57. .B file://
  58. sources).
  59. .PP
  60. .I binary-dir
  61. is the name of the tree of the binary packages to process (for example,
  62. .BR contrib/binary\-i386 ).
  63. It is best to make this relative to the root of the Debian archive,
  64. because every Filename field in the new Packages file will start with
  65. this string.
  66. .PP
  67. .I override-file
  68. is the name of a file to read which contains information about how the
  69. package fits into the distribution (the file can be compressed
  70. since dpkg 1.15.5); see
  71. .BR deb\-override (5).
  72. .PP
  73. .I path-prefix
  74. is an optional string to be prepended to the Filename fields.
  75. .PP
  76. If more than one version of a package is found only the newest one
  77. is included in the output. If they have the same version and only
  78. differ in architecture only the first one found is used.
  79. .
  80. .SH OPTIONS
  81. .TP
  82. .BR \-t ", " \-\-type " \fItype\fP"
  83. Scan for *.\fItype\fP packages, instead of *.deb.
  84. .TP
  85. .BR \-e ", " \-\-extra\-override " \fIfile\fP"
  86. Scan \fIfile\fP to find supplementary overrides (the file can be
  87. compressed since dpkg 1.15.5).
  88. See
  89. .BR deb\-extra\-override (5)
  90. for more information on its format.
  91. .TP
  92. .BR \-a ", " \-\-arch " \fIarch\fP"
  93. Use a pattern consisting of \fI*_all.deb\fP and \fI*_arch.deb\fP instead of
  94. scanning for all debs.
  95. .TP
  96. .BR \-h ", " \-\-hash " \fIhash-list\fP"
  97. Only generate file hashes for the comma-specified list specified
  98. (since dpkg 1.17.14).
  99. The default is to generate all currently supported hashes.
  100. Supported values: \fBmd5\fP, \fBsha1\fP, \fBsha256\fP.
  101. .TP
  102. .BR \-m ", " \-\-multiversion
  103. Include all found packages in the output.
  104. .TP
  105. .BR \-M ", " \-\-medium " \fIid-string\fP"
  106. Add an \fBX\-Medium\fP field containing the value \fIid-string\fP
  107. (since dpkg 1.15.5).
  108. This field is required if you want to generate \fBPackages.cd\fP files
  109. for use by the multicd access method of dselect.
  110. .TP
  111. .BR \-? ", " \-\-help
  112. Show the usage message and exit.
  113. .TP
  114. .BR \-\-version
  115. Show the version and exit.
  116. .
  117. .SH DIAGNOSTICS
  118. .B dpkg\-scanpackages
  119. outputs the usual self-explanatory errors. It also warns about packages
  120. that are in the wrong subdirectory, are duplicated, have a Filename
  121. field in their control file, are missing from the override file, or have
  122. maintainer substitutions which do not take effect.
  123. .
  124. .SH SEE ALSO
  125. .ad l
  126. .nh
  127. .BR dpkg (1),
  128. .BR dselect (1),
  129. .BR deb\-override (5),
  130. .BR deb\-extra\-override (5),
  131. .BR dpkg\-scansources (1).