README.multicd 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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, you
  47. have to use the '-M medium' option of dpkg-scanpackages (supported
  48. in dpkg-dev >= 1.15.5).
  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. Sample Layout
  55. -------------
  56. CD1 .disk/info = "Debian GNU/Linux binary-i386"
  57. dists/stable/main/binary-all/
  58. binary-i386/Packages.cd.gz
  59. binary-i386/net/foo.deb
  60. contrib/binary-i386/Packages.cd.gz
  61. non-free/binary-i386/Packages.cd.gz
  62. non-US/binary-i386/Packages.cd.gz
  63. CD2 .disk/info = "Debian GNU/Linux contrib-i386"
  64. dists/stable/main/binary-i386/Packages.cd.gz
  65. contrib/binary-all/
  66. binary-i386/Packages.cd.gz
  67. binary-i386/net/foo.deb
  68. non-free/binary-i386/Packages.cd.gz
  69. non-US/binary-i386/Packages.cd.gz
  70. CD3 .disk/info = "Debian GNU/Linux non-free-i386"
  71. dists/stable/main/binary-i386/Packages.cd.gz
  72. contrib/binary-i386/Packages.cd.gz
  73. non-free/binary-all/
  74. binary-i386/Packages.cd.gz
  75. binary-i386/net/foo.deb
  76. non-US/binary-all/
  77. To re-generate the Packages file you have to chdir into
  78. 'dists/stable/$part' and issue 'dpkg-scanpackages' as follows. It's
  79. assumed that you use regular compressed overrides files in
  80. /pub/debian/indices.
  81. CD1: dpkg-scanpackages -M "Debian GNU/Linux binary-i386" \
  82. binary-i386 /pub/debian/indices/override.hamm.gz \
  83. dists/stable/ > binary-i386/Packages
  84. CD2: dpkg-scanpackages -M "Debian GNU/Linux contrib-i386" \
  85. binary-i386 /pub/debian/indices/override.hamm.contrib.gz \
  86. dists/stable/ > binary-i386/Packages
  87. CD3: dpkg-scanpackages -M "Debian GNU/Linux non-free-i386" \
  88. binary-i386 /pub/debian/indices/override.hamm.non-free.gz \
  89. dists/stable/ > binary-i386/Packages
  90. Please direct comments to Martin Schulze <joey@infodrom.north.de>