dpkg-scanpackages.8 3.4 KB

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