dpkg-scanpackages.1 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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 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 <http://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 bzip2 (1)
  51. (generating a Packages.bz2 file) or
  52. .BR gzip (1)
  53. (generating a Packages.gz file). apt ignores uncompressed Packages
  54. files except on local access (i.e.
  55. .B file://
  56. sources).
  57. .PP
  58. .I binary-dir
  59. is the name of the tree of the binary packages to process (for example,
  60. .BR contrib/binary\-i386 ).
  61. It is best to make this relative to the root of the Debian archive,
  62. because every Filename field in the new Packages file will start with
  63. this string.
  64. .PP
  65. .I override-file
  66. is the name of a file to read which contains information about how the
  67. package fits into the distribution (it can be a compressed file); see
  68. .BR deb\-override (5).
  69. .PP
  70. .I path-prefix
  71. is an optional string to be prepended to the Filename fields.
  72. .PP
  73. If more than one version of a package is found only the newest one
  74. is included in the output. If they have the same version and only
  75. differ in architecture only the first one found is used.
  76. .
  77. .SH OPTIONS
  78. .TP
  79. .BR \-t ", " \-\-type " \fItype\fP"
  80. Scan for *.\fItype\fP packages, instead of *.deb.
  81. .TP
  82. .BR \-e ", " \-\-extra\-override " \fIfile\fP"
  83. Scan \fIfile\fP to find supplementary overrides (the file can be
  84. compressed). See
  85. .BR deb\-extra\-override (5)
  86. for more information on its format.
  87. .TP
  88. .BR \-a ", " \-\-arch " \fIarch\fP"
  89. Use a pattern consisting of \fI*_all.deb\fP and \fI*_arch.deb\fP instead of
  90. scanning for all debs.
  91. .TP
  92. .BR \-m ", " \-\-multiversion
  93. Include all found packages in the output.
  94. .TP
  95. .BR \-M ", " \-\-medium " \fIid-string\fP"
  96. Add an X\-Medium field containing the value \fIid-string\fP. This field
  97. is required if you want to generate \fBPackages.cd\fP files for use
  98. by the multicd access method of dselect.
  99. .TP
  100. .BR \-? ", " \-\-help
  101. Show the usage message and exit.
  102. .TP
  103. .BR \-\-version
  104. Show the version and exit.
  105. .
  106. .SH DIAGNOSTICS
  107. .B dpkg\-scanpackages
  108. outputs the usual self-explanatory errors. It also warns about packages
  109. that are in the wrong subdirectory, are duplicated, have a Filename
  110. field in their control file, are missing from the override file, or have
  111. maintainer substitutions which do not take effect.
  112. .
  113. .SH SEE ALSO
  114. .ad l
  115. .nh
  116. .BR dpkg (1),
  117. .BR dselect (1),
  118. .BR deb\-override (5),
  119. .BR deb\-extra\-override (5),
  120. .BR dpkg\-scansources (1).