apt-cdrom.8.sgml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <!-- -*- mode: sgml; mode: fold -*- -->
  2. <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
  3. <!ENTITY % aptent SYSTEM "apt.ent">
  4. %aptent;
  5. ]>
  6. <refentry>
  7. &apt-docinfo;
  8. <refmeta>
  9. <refentrytitle>apt-cdrom</>
  10. <manvolnum>8</>
  11. </refmeta>
  12. <!-- Man page title -->
  13. <refnamediv>
  14. <refname>apt-cdrom</>
  15. <refpurpose>APT CDROM managment utility</>
  16. </refnamediv>
  17. <!-- Arguments -->
  18. <refsynopsisdiv>
  19. <cmdsynopsis>
  20. <command>apt-cdrom</>
  21. <arg><option>-hvrmfan</></arg>
  22. <arg><option>-d=<replaceable/cdrom mount point/</></arg>
  23. <arg><option>-o=<replaceable/config string/</></arg>
  24. <arg><option>-c=<replaceable/file/</></arg>
  25. <group choice=req>
  26. <arg>add</>
  27. <arg>ident</>
  28. </group>
  29. </cmdsynopsis>
  30. </refsynopsisdiv>
  31. <RefSect1><Title>Description</>
  32. <para>
  33. <command/apt-cdrom/ is used to add a new CDROM to APTs list of available
  34. sources. <command/apt-cdrom/ takes care of determining the structure of
  35. the disc as well as correcting for several possible mis-burns and
  36. verifying the index files.
  37. <para>
  38. It is necessary to use <command/apt-cdrom/ to add CDs to the APT system,
  39. it cannot be done by hand. Furthermore each disk in a multi-cd set must be
  40. inserted and scanned separately to account for possible mis-burns.
  41. <para>
  42. Unless the <option/-h/, or <option/--help/ option is given one of the
  43. commands below must be present.
  44. <VariableList>
  45. <VarListEntry><Term>add</Term>
  46. <ListItem><Para>
  47. <literal/add/ is used to add a new disc to the source list. It will unmount the
  48. CDROM device, prompt for a disk to be inserted and then procceed to
  49. scan it and copy the index files. If the disc does not have a proper
  50. <filename>.disk/</> directory you will be prompted for a descriptive
  51. title.
  52. <para>
  53. APT uses a CDROM ID to track which disc is currently in the drive and
  54. maintains a database of these IDs in
  55. <filename>&statedir;/cdroms.list</>
  56. </VarListEntry>
  57. <VarListEntry><Term>ident</Term>
  58. <ListItem><Para>
  59. A debugging tool to report the identity of the current disc as well
  60. as the stored file name
  61. </VarListEntry>
  62. </VariableList>
  63. </RefSect1>
  64. <RefSect1><Title>Options</>
  65. &apt-cmdblurb;
  66. <VariableList>
  67. <VarListEntry><term><option/-d/</><term><option/--cdrom/</>
  68. <ListItem><Para>
  69. Mount point; specify the location to mount the cdrom. This mount
  70. point must be listed in <filename>/etc/fstab</> and propely configured.
  71. Configuration Item: <literal/Acquire::cdrom::mount/.
  72. </VarListEntry>
  73. <VarListEntry><term><option/-r/</><term><option/--rename/</>
  74. <ListItem><Para>
  75. Rename a disc; change the label of a disk or override the disks
  76. given label. This option will cause <command/apt-cdrom/ to prompt for
  77. a new label.
  78. Configuration Item: <literal/APT::CDROM::Rename/.
  79. </VarListEntry>
  80. <VarListEntry><term><option/-m/</><term><option/--no-mount/</>
  81. <ListItem><Para>
  82. No mounting; prevent <command/apt-cdrom/ from mounting and unmounting
  83. the mount point.
  84. Configuration Item: <literal/APT::CDROM::NoMount/.
  85. </VarListEntry>
  86. <VarListEntry><term><option/-f/</><term><option/--fast/</>
  87. <ListItem><Para>
  88. Fast Copy; Assume the package files are valid and do not check
  89. every package. This option should be used only if
  90. <command/apt-cdrom/ has been run on this disc before and did not detect
  91. any errors.
  92. Configuration Item: <literal/APT::CDROM::Fast/.
  93. </VarListEntry>
  94. <VarListEntry><term><option/-a/</><term><option/--thorough/</>
  95. <ListItem><Para>
  96. Thorough Package Scan; This option may be needed with some old
  97. Debian 1.1/1.2 discs that have Package files in strange places. It
  98. takes much longer to scan the CD but will pick them all up.
  99. </VarListEntry>
  100. <VarListEntry><term><option/-n/</>
  101. <term><option/--just-print/</>
  102. <term><option/--recon/</>
  103. <term><option/--no-act/</>
  104. <ListItem><Para>
  105. No Changes; Do not change the &sources-list; file and do not
  106. write index files. Everything is still checked however.
  107. Configuration Item: <literal/APT::CDROM::NoAct/.
  108. </VarListEntry>
  109. &apt-commonoptions;
  110. </VariableList>
  111. </RefSect1>
  112. <RefSect1><Title>See Also</>
  113. <para>
  114. &apt-conf;, &apt-get;, &sources-list;
  115. </RefSect1>
  116. <RefSect1><Title>Diagnostics</>
  117. <para>
  118. <command/apt-cdrom/ returns zero on normal operation, decimal 100 on error.
  119. </RefSect1>
  120. &manbugs;
  121. &manauthor;
  122. </refentry>