dpkg-scanpackages.1 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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 "2007-11-19" "Debian Project" "dpkg utilities"
  17. .SH NAME
  18. dpkg\-scanpackages \- create Packages index files
  19. .
  20. .SH SYNOPSIS
  21. .B dpkg\-scanpackages
  22. .RI [ options ]
  23. .I binary-dir
  24. .RI [ override-file
  25. .RI [ path-prefix ]]
  26. .B >
  27. .I Packages
  28. .
  29. .SH DESCRIPTION
  30. .B dpkg\-scanpackages
  31. sorts through a tree of Debian binary packages and creates a Packages
  32. file, used by
  33. .BR apt (8),
  34. .BR dselect (1),
  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. .B Note:
  43. If you want to access the generated Packages file with
  44. .B apt
  45. you will probably need to compress the file with
  46. .BR bzip2 (1)
  47. (generating a Packages.bz2 file) or
  48. .BR gzip (1)
  49. (generatinc 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 more than one version of a package is found only the newest one
  69. is included in the output. If they have the same version and only
  70. differ in architecture only the first one found is used.
  71. .
  72. .SH OPTIONS
  73. .TP
  74. .BR \-t ", " \-\-type " \fItype\fP"
  75. Scan for *.\fItype\fP packages, instead of *.deb.
  76. .TP
  77. .BR \-u ", " \-\-udeb
  78. \fBObsolete\fP alias for \fB-tudeb\fP.
  79. .TP
  80. .BR \-a ", " \-\-arch " \fIarch\fP"
  81. Use a pattern consisting of \fI*_all.deb\fP and \fI*_arch.deb\fP instead of
  82. scanning for all debs,
  83. .TP
  84. .BR \-m ", " \-\-multiversion
  85. Include all found packages in the output.
  86. .TP
  87. .BR \-h ", " \-\-help
  88. Show the usage message and exit.
  89. .TP
  90. .BR \-\-version
  91. Show the version and exit.
  92. .
  93. .SH DIAGNOSTICS
  94. .B dpkg\-scanpackages
  95. outputs the usual self-explanatory errors. It also warns about packages
  96. that are in the wrong subdirectory, are duplicated, have a Filename
  97. field in their control file, are missing from the override file, or have
  98. maintainer substitutions which do not take effect.
  99. .
  100. .SH SEE ALSO
  101. .BR dpkg (1),
  102. .BR dselect (1),
  103. .BR deb\-override (5),
  104. .BR dpkg\-scansources (1).