dpkg-scanpackages.1 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. .\" Copyright © 1996 Michael Shields <shields@crosslink.net>
  2. .\"
  3. .\" This is free software; you may redistribute it and/or modify
  4. .\" it under the terms of the GNU General Public License as published by
  5. .\" the Free Software Foundation; either version 2 of the License, or
  6. .\" (at your option) any later version.
  7. .\"
  8. .\" This is distributed in the hope that it will be useful,
  9. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. .\" GNU General Public License for more details.
  12. .\"
  13. .\" You should have received a copy of the GNU General Public License
  14. .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. .TH dpkg\-scanpackages 1 "2011-08-14" "Debian Project" "dpkg utilities"
  16. .SH NAME
  17. dpkg\-scanpackages \- create Packages index files
  18. .
  19. .SH SYNOPSIS
  20. .B dpkg\-scanpackages
  21. .RI [ option "...] " binary-dir
  22. .RI [ override-file
  23. .RI [ path-prefix ]]
  24. .B >
  25. .I Packages
  26. .
  27. .SH DESCRIPTION
  28. .B dpkg\-scanpackages
  29. sorts through a tree of Debian binary packages and creates a Packages
  30. file, used by
  31. .BR apt (8),
  32. .BR dselect (1),
  33. etc, to tell the user what packages are available for installation. These
  34. Packages files are the same as those found on Debian archive sites
  35. and CD-ROMs. You might use
  36. .B dpkg\-scanpackages
  37. yourself if making a directory of local packages to install on a cluster
  38. of machines.
  39. .PP
  40. .B Note:
  41. If you want to access the generated Packages file with
  42. .B apt
  43. you will probably need to compress the file with
  44. .BR bzip2 (1)
  45. (generating a Packages.bz2 file) or
  46. .BR gzip (1)
  47. (generating a Packages.gz file). apt ignores uncompressed Packages
  48. files except on local access (i.e.
  49. .B file://
  50. sources).
  51. .PP
  52. .I binarydir
  53. is the name of the tree of the binary packages to process (for example,
  54. .BR contrib/binary\-i386 ).
  55. It is best to make this relative to the root of the Debian archive,
  56. because every Filename field in the new Packages file will start with
  57. this string.
  58. .PP
  59. .I overridefile
  60. is the name of a file to read which contains information about how the
  61. package fits into the distribution (it can be a compressed file); see
  62. .BR deb\-override (5).
  63. .PP
  64. .I pathprefix
  65. is an optional string to be prepended to the Filename fields.
  66. .PP
  67. If more than one version of a package is found only the newest one
  68. is included in the output. If they have the same version and only
  69. differ in architecture only the first one found is used.
  70. .
  71. .SH OPTIONS
  72. .TP
  73. .BR \-t ", " \-\-type " \fItype\fP"
  74. Scan for *.\fItype\fP packages, instead of *.deb.
  75. .TP
  76. .BR \-u ", " \-\-udeb
  77. \fBObsolete\fP alias for \fB\-tudeb\fP.
  78. .TP
  79. .BR \-e ", " \-\-extra\-override " \fIfile\fP"
  80. Scan \fIfile\fP to find supplementary overrides (the file can be
  81. compressed). See
  82. .BR deb\-extra\-override (5)
  83. for more information on its format.
  84. .TP
  85. .BR \-a ", " \-\-arch " \fIarch\fP"
  86. Use a pattern consisting of \fI*_all.deb\fP and \fI*_arch.deb\fP instead of
  87. scanning for all debs.
  88. .TP
  89. .BR \-m ", " \-\-multiversion
  90. Include all found packages in the output.
  91. .TP
  92. .BR \-M ", " \-\-medium " \fIid-string\fP"
  93. Add an X\-Medium field containing the value \fIid-string\fP. This field
  94. is required if you want to generate \fBPackages.cd\fP files for use
  95. by the multicd access method of dselect.
  96. .TP
  97. .BR \-h ", " \-\-help
  98. Show the usage message and exit.
  99. .TP
  100. .BR \-\-version
  101. Show the version and exit.
  102. .
  103. .SH DIAGNOSTICS
  104. .B dpkg\-scanpackages
  105. outputs the usual self-explanatory errors. It also warns about packages
  106. that are in the wrong subdirectory, are duplicated, have a Filename
  107. field in their control file, are missing from the override file, or have
  108. maintainer substitutions which do not take effect.
  109. .
  110. .SH SEE ALSO
  111. .BR dpkg (1),
  112. .BR dselect (1),
  113. .BR deb\-override (5),
  114. .BR deb\-extra\-override (5),
  115. .BR dpkg\-scansources (1).