apt-cdrom.8.xml 5.6 KB

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