apt-cdrom.8.xml 5.6 KB

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