dpkg-scanpackages.1 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. .\" This manpage is copyright (C) 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
  5. .\" published by the Free Software Foundation; either version 2,
  6. .\" or (at your option) any later version.
  7. .\"
  8. .\" This is distributed in the hope that it will be useful, but
  9. .\" 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
  14. .\" License along with dpkg; if not, write to the Free Software
  15. .\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. .TH dpkg\-scanpackages 1 "2006-05-10" "Debian Project" "dpkg utilities"
  17. .SH NAME
  18. dpkg\-scanpackages - create Packages files
  19. .
  20. .SH SYNOPSIS
  21. .B dpkg\-scanpackages
  22. .RB [ \-u "] [" \-a
  23. .I <arch>
  24. .RB "] [" \-m ]
  25. .I binarydir
  26. .I overridefile
  27. .RI [ pathprefix ]
  28. .B >
  29. .I Packages
  30. .
  31. .SH DESCRIPTION
  32. .B dpkg\-scanpackages
  33. sorts through a tree of Debian binary packages and creates a Packages
  34. file, used by
  35. .BR apt (8),
  36. .BR dselect (1),
  37. etc, to tell the user what packages are available for installation. These
  38. Packages files are the same as those found on Debian archive sites
  39. and CD-ROMs. You might use
  40. .B dpkg\-scanpackages
  41. yourself if making a directory of local packages to install on a cluster
  42. of machines.
  43. .PP
  44. .B Note:
  45. If you want to access the generated Packages file with
  46. .B apt
  47. you will probably need to compress the file with
  48. .BR gzip (1)
  49. (generating a Packages.gz file). apt ignores uncompressed Packages
  50. files except on local access (i.e.
  51. .B file://
  52. sources).
  53. .PP
  54. .I binarydir
  55. is the name of the tree of the binary packages to process (for example,
  56. .BR contrib/binary\-i386 ).
  57. It is best to make this relative to the root of the Debian archive,
  58. because every Filename field in the new Packages file will start with
  59. this string.
  60. .PP
  61. .I overridefile
  62. is the name of a file to read which contains information about how the
  63. package fits into the distribution; see below.
  64. .PP
  65. .I pathprefix
  66. is an optional string to be prepended to the Filename fields.
  67. .PP
  68. If
  69. .B \-u
  70. is specified, then scan for *.udeb, instead of *.deb.
  71. .PP
  72. When \fB\-a\fP\fI<arch>\fP is specified, then instead of scanning for all
  73. debs, a pattern consisting of *_all.deb and *_arch.deb is used.
  74. .PP
  75. If more than one version of a package is found only the newest one
  76. is included in the output. If they have the same version and only
  77. differ in architecture only the first one found is used. You can override
  78. this behaviour with the \fB\-m\fP switch. If given, all found packages
  79. are included in the output.
  80. .
  81. .SH THE OVERRIDE FILE
  82. While most information about a package can be found in the control file,
  83. some must be filled in by the distribution czars rather than by the
  84. maintainer, because they relate to the arrangement of files for release
  85. rather than the actual dependencies and description of the package.
  86. This information is found in the override file.
  87. .PP
  88. The override file has a simple whitespace-delimited format. Comments are
  89. allowed (denoted with a
  90. .BR # ).
  91. .PP
  92. .in +5
  93. .I package
  94. .I priority
  95. .I section
  96. .RI [ maintainerinfo ]
  97. .in -5
  98. .PP
  99. .I package
  100. is the name of the package. Entries in the override file for packages
  101. not found in the tree of binary packages are ignored.
  102. .PP
  103. .I priority
  104. and
  105. .I section
  106. place the package within the release tree; these ought not to be found
  107. in the control file. If the package is found in a subdirectory of
  108. .IR binarydir ,
  109. that will be checked against
  110. .IR section .
  111. .PP
  112. .IR maintainerinfo ,
  113. if present, can be either the name of a maintainer for an unconditional
  114. override, or else
  115. .I oldmaintainer
  116. .B =>
  117. .I newmaintainer
  118. to perform a substitution.
  119. .PP
  120. The override files used to make the official Packages lists may be found
  121. in the
  122. .I indices
  123. directory on any Debian mirror.
  124. .
  125. .SH DIAGNOSTICS
  126. .B dpkg\-scanpackages
  127. outputs the usual self-explanatory errors. It also warns about packages
  128. that are in the wrong subdirectory, are duplicated, have a Filename
  129. field in their control file, are missing from the override file, or have
  130. maintainer substitutions which do not take effect.
  131. .
  132. .SH SEE ALSO
  133. .BR dpkg (1),
  134. .BR dselect (1),
  135. .BR dpkg\-scansources (1).