apt-cdrom.8.xml 5.5 KB

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