dpkg-scanpackages.1 3.7 KB

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