apt-cdrom.8.xml 5.5 KB

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