]> git.saurik.com Git - apt.git/blob - doc/apt-cdrom.8.xml
* doc/*:
[apt.git] / doc / apt-cdrom.8.xml
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
5 <!ENTITY % aptent SYSTEM "apt.ent">
6 %aptent;
7
8 <!ENTITY % aptverbatiment SYSTEM "apt-verbatim.ent">
9 %aptverbatiment;
10
11 ]>
12
13 <refentry>
14
15 <refentryinfo>
16 &apt-author.jgunthorpe;
17 &apt-author.team;
18 &apt-email;
19 &apt-product;
20 <date>14 February 2004</date>
21 </refentryinfo>
22
23 <refmeta>
24 <refentrytitle>apt-cdrom</refentrytitle>
25 <manvolnum>8</manvolnum>
26 <refmiscinfo class="manual">APT</refmiscinfo>
27 </refmeta>
28
29 <!-- Man page title -->
30 <refnamediv>
31 <refname>apt-cdrom</refname>
32 <refpurpose>APT CDROM management utility</refpurpose>
33 </refnamediv>
34
35 &synopsis-command-apt-cdrom;
36
37 <refsect1><title>Description</title>
38 <para><command>apt-cdrom</command> is used to add a new CDROM to APTs list
39 of available sources. <command>apt-cdrom</command> takes care of
40 determining the structure of
41 the disc as well as correcting for several possible mis-burns and
42 verifying the index files.
43 </para>
44
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
51 <para>Unless the <option>-h</option>, or <option>--help</option> option is
52 given one of the commands below must be present.
53
54 <variablelist>
55 <varlistentry><term>add</term>
56 <listitem><para><literal>add</literal> is used to add a new disc to the
57 source list. It will unmount the
58 CDROM device, prompt for a disk to be inserted and then proceed to
59 scan it and copy the index files. If the disc does not have a proper
60 <filename>disk</filename> directory you will be prompted for a descriptive
61 title.
62 </para>
63
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
71 <varlistentry><term>ident</term>
72 <listitem><para>A debugging tool to report the identity of the current
73 disc as well as the stored file name
74 </para>
75 </listitem>
76 </varlistentry>
77 </variablelist>
78 </para>
79 </refsect1>
80
81 <refsect1><title>Options</title>
82 &apt-cmdblurb;
83
84 <variablelist>
85 <varlistentry><term><option>-d</option></term><term><option>--cdrom</option></term>
86 <listitem><para>Mount point; specify the location to mount the cdrom. This
87 mount point must be listed in <filename>/etc/fstab</filename> and
88 properly configured.
89 Configuration Item: <literal>Acquire::cdrom::mount</literal>.
90 </para>
91 </listitem>
92 </varlistentry>
93
94 <varlistentry><term><option>-r</option></term><term><option>--rename</option></term>
95 <listitem><para>Rename a disc; change the label of a disk or override the
96 disks given label. This option will cause <command>apt-cdrom</command> to
97 prompt for a new label.
98 Configuration Item: <literal>APT::CDROM::Rename</literal>.
99 </para>
100 </listitem>
101 </varlistentry>
102
103 <varlistentry><term><option>-m</option></term><term><option>--no-mount</option></term>
104 <listitem><para>No mounting; prevent <command>apt-cdrom</command> from
105 mounting and unmounting the mount point.
106 Configuration Item: <literal>APT::CDROM::NoMount</literal>.
107 </para>
108 </listitem>
109 </varlistentry>
110
111 <varlistentry><term><option>-f</option></term><term><option>--fast</option></term>
112 <listitem><para>Fast Copy; Assume the package files are valid and do not
113 check every package. This option should be used only if
114 <command>apt-cdrom</command> has been run on this disc before and did not
115 detect any errors.
116 Configuration Item: <literal>APT::CDROM::Fast</literal>.
117 </para>
118 </listitem>
119 </varlistentry>
120
121 <varlistentry><term><option>-a</option></term><term><option>--thorough</option></term>
122 <listitem><para>Thorough Package Scan; This option may be needed with some
123 old Debian 1.1/1.2 discs that have Package files in strange places. It
124 takes much longer to scan the CD but will pick them all up.
125 </para>
126 </listitem>
127 </varlistentry>
128
129 <varlistentry><term><option>-n</option></term>
130 <term><option>--just-print</option></term>
131 <term><option>--recon</option></term>
132 <term><option>--no-act</option></term>
133 <listitem><para>No Changes; Do not change the &sources-list; file and do
134 not write index files. Everything is still checked however.
135 Configuration Item: <literal>APT::CDROM::NoAct</literal>.
136 </para>
137 </listitem>
138 </varlistentry>
139
140 &apt-commonoptions;
141
142 </variablelist>
143 </refsect1>
144
145 <refsect1><title>See Also</title>
146 <para>&apt-conf;, &apt-get;, &sources-list;
147 </para>
148 </refsect1>
149
150 <refsect1><title>Diagnostics</title>
151 <para><command>apt-cdrom</command> returns zero on normal operation, decimal 100 on error.
152 </para>
153 </refsect1>
154
155 &manbugs;
156
157 </refentry>
158