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