README.multicd 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. Installation methods for multiple binary CDs
  2. --------------------------------------------
  3. This package provides three new methods to be used within dselect in
  4. order to access Debian binary packages stored across multiple binary CD
  5. ROMs. It will install itself into the methods directory from dselect
  6. so the user will be able to use them immediately.
  7. These are the three new methods:
  8. . Multiple binary CD-ROMs
  9. . Multiple binary CD-ROMs, accessed through NFS
  10. . Multiple binary CD-ROMs, pre-mounted
  11. Acquiring package data
  12. ---------------------
  13. Since this method is derived from the `mounted' method the user is
  14. able to access up to five binary directories within `dists/stable':
  15. . main
  16. . contrib
  17. . non-free
  18. . non-US
  19. . local
  20. The selected method will try to read the `Packages.cd' file from each
  21. of these directories if it is available.
  22. Identifying the CD-ROM
  23. ----------------------
  24. A unique name is associated to each CD. This name should correspond
  25. with the label on the front of the CD. The name is also available on
  26. the CD, so the system can find out which CD is in the drive at any
  27. time.
  28. Installing the files
  29. --------------------
  30. At the beginning of the installation the `multicd' package will sort
  31. the list of to-be-installed packages and install them CD by CD. If a
  32. different CD-ROM is required the user will be prompted to exchange
  33. the CD-ROM.
  34. Preparing multiple binary CD-ROMs
  35. ---------------------------------
  36. Since the `multicd' methods need to know which packages are on which
  37. CD-ROMs one cannot use regular `Packages' files. An additional data
  38. field "X-Medium:" is required. The first CD-ROM from the set should
  39. contain all `Packages.cd' files. To be more convenient you should
  40. include the `Packages.cd' files on all CD-ROMs. This ensures that
  41. you don't have to start with the first CD-ROM all the time.
  42. Additionally the package needs to gain information which CD-ROM is
  43. currently used. Thus each CD-ROM contains the file `.disk/info'
  44. which contains the symbolic name for the CD-ROM as specified by
  45. "X-Medium:".
  46. In order to be able to create the modified `Packages.cd' files, this
  47. package installs a modified version of `dpkg-scanpackages' in
  48. /usr/bin. You'll need to specify the used medium with `-m medium'.
  49. To split the `main' distribution into two CD-ROMs you'll need to
  50. create a `Packages.cd' file for each `binary-$arch' directory.
  51. Afterwards you simply append the second one to the first one and
  52. put the resulting `Packages.cd' file into both `binary-$arch'
  53. directories.
  54. dpkg-scanpackages
  55. -----------------
  56. This package provides an improved version of `dpkg-scanpackages'
  57. which comes with the following additional features:
  58. . It can read compressed overrides files
  59. . Using `-m <medium>' you can tell the program to add the new data
  60. field "X-Medium:" for each record in the output.
  61. This version is installed using `dpkg-divert' which will disable the
  62. original `dpkg-scanpackages' program.
  63. Sample Layout
  64. -------------
  65. CD1 .disk/info = "Debian GNU/Linux binary-i386"
  66. dists/stable/main/binary-all/
  67. binary-i386/Packages.cd.gz
  68. binary-i386/net/foo.deb
  69. contrib/binary-i386/Packages.cd.gz
  70. non-free/binary-i386/Packages.cd.gz
  71. non-US/binary-i386/Packages.cd.gz
  72. CD2 .disk/info = "Debian GNU/Linux contrib-i386"
  73. dists/stable/main/binary-i386/Packages.cd.gz
  74. contrib/binary-all/
  75. binary-i386/Packages.cd.gz
  76. binary-i386/net/foo.deb
  77. non-free/binary-i386/Packages.cd.gz
  78. non-US/binary-i386/Packages.cd.gz
  79. CD3 .disk/info = "Debian GNU/Linux non-free-i386"
  80. dists/stable/main/binary-i386/Packages.cd.gz
  81. contrib/binary-i386/Packages.cd.gz
  82. non-free/binary-all/
  83. binary-i386/Packages.cd.gz
  84. binary-i386/net/foo.deb
  85. non-US/binary-all/
  86. To re-generate the Packages file you have to chdir into
  87. `dists/stable/$part' and issue `dpkg-scanpackages' as follows. It's
  88. assumed that you regular compressed overrides files in
  89. /pub/debian/indices.
  90. CD1: dpkg-scanpackages -m "Debian GNU/Linux binary-i386" \
  91. binary-i386 /pub/debian/indices/override.hamm.gz \
  92. dists/stable/ > binary-i386/Packages
  93. CD2: dpkg-scanpackages -m "Debian GNU/Linux contrib-i386" \
  94. binary-i386 /pub/debian/indices/override.hamm.contrib.gz \
  95. dists/stable/ > binary-i386/Packages
  96. CD3: dpkg-scanpackages -m "Debian GNU/Linux non-free-i386" \
  97. binary-i386 /pub/debian/indices/override.hamm.non-free.gz \
  98. dists/stable/ > binary-i386/Packages
  99. Please direct comments to Martin Schulze <joey@infodrom.north.de>