dpkg-scanpackages.8 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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 8 "1996-07-08" "Debian project" "dpkg utilities"
  17. .SH NAME
  18. dpkg-scanpackages \- create Packages files
  19. .
  20. .SH SYNOPSIS
  21. .B dpkg-scanpackages
  22. .RI [ -u ]
  23. .RI [ -a<arch> ]
  24. .I binarydir
  25. .I overridefile
  26. .RI [ pathprefix ]
  27. .B >
  28. .I Packages
  29. .
  30. .SH DESCRIPTION
  31. .B dpkg-scanpackages
  32. sorts through a tree of Debian binary packages and creates a Packages
  33. file, used by
  34. .BR dselect (8),
  35. etc, to tell the user what packages are available for installation. These
  36. Packages files are the same as those found on Debian archive sites
  37. and CD-ROMs. You might use
  38. .B dpkg-scanpackages
  39. yourself if making a directory of local packages to install on a cluster
  40. of machines.
  41. .PP
  42. .I binarydir
  43. is the name of the binary tree to process (for example,
  44. .BR contrib/binary-i386 ).
  45. It is best to make this relative to the root of the Debian archive,
  46. because every Filename field in the new Packages file will start with
  47. this string.
  48. .PP
  49. .I overridefile
  50. is the name of a file to read which contains information about how the
  51. package fits into the distribution; see below.
  52. .PP
  53. .I pathprefix
  54. is an optional string to be prepended to the Filename fields.
  55. .PP
  56. If
  57. .I -u
  58. is specified, then scan for *.udeb, instead of *.deb.
  59. .PP
  60. When -a\fI<arch>\fP is specified, then instead of scanning for all debs,
  61. a pattern consisting of *_all.deb and *_arch.deb is used.
  62. .
  63. .SH THE OVERRIDE FILE
  64. While most information about a package can be found in the control file,
  65. some must be filled in by the distribution czars rather than by the
  66. maintainer, because they relate to the arrangement of files for release
  67. rather than the actual dependencies and description of the package.
  68. This information is found in the override file.
  69. .PP
  70. The override file has a simple whitespace-delimited format. Comments are
  71. allowed (denoted with a
  72. .BR # ).
  73. .PP
  74. .in +5
  75. .I package
  76. .I priority
  77. .I section
  78. .RI [ maintainerinfo ]
  79. .in -5
  80. .PP
  81. .I package
  82. is the name of the package. Entries in the override file for packages
  83. not found in the binary tree are ignored.
  84. .PP
  85. .I priority
  86. and
  87. .I section
  88. place the package within the release tree; these ought not to be found
  89. in the control file. If the package is found in a subdirectory of
  90. .IR binarydir ,
  91. that will be checked against
  92. .IR section .
  93. .PP
  94. .IR maintainerinfo ,
  95. if present, can be either the name of a maintainer for an unconditional
  96. override, or else
  97. .I oldmaintainer
  98. .B =>
  99. .I newmaintainer
  100. to perform a substitution.
  101. .PP
  102. The override files used to make the official Packages lists may be found
  103. in the
  104. .I indices
  105. directory on any Debian mirror.
  106. .
  107. .SH DIAGNOSTICS
  108. .B dpkg-scanpackages
  109. outputs the usual self-explanatory errors. It also warns about packages
  110. that are in the wrong subdirectory, are duplicated, have a Filename
  111. field in their control file, are missing from the override file, or have
  112. maintainer substitutions which do not take effect.
  113. .
  114. .SH SEE ALSO
  115. .BR dpkg (8),
  116. .BR dselect (8),
  117. .BR dpkg-scansources (8).