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" [
5 <!ENTITY % aptent SYSTEM
"apt.ent">
15 <refentrytitle>apt-cdrom
</refentrytitle>
16 <manvolnum>8</manvolnum>
19 <!-- Man page title -->
21 <refname>apt-cdrom
</refname>
22 <refpurpose>APT CDROM management utility
</refpurpose>
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>
40 <refsect1><title>Description
</title>
41 <para><command>apt-cdrom
</command> is used to add a new CDROM to APTs list
42 of available sources.
<command>apt-cdrom
</command> takes care of
43 determining the structure of
44 the disc as well as correcting for several possible mis-burns and
45 verifying the index files.
48 <para>It is necessary to use
<command>apt-cdrom
</command> to add CDs to the
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.
54 <para>Unless the
<option>-h
</option>, or
<option>--help
</option> option is
55 given one of the commands below must be present.
58 <varlistentry><term>add
</term>
59 <listitem><para><literal>add
</literal> is used to add a new disc to the
60 source list. It will unmount the
61 CDROM device, prompt for a disk to be inserted and then procceed to
62 scan it and copy the index files. If the disc does not have a proper
63 <filename>disk
</filename> directory you will be prompted for a descriptive
67 <para>APT uses a CDROM ID to track which disc is currently in the drive and
68 maintains a database of these IDs in
69 <filename>&statedir;/cdroms.list
</filename>
74 <varlistentry><term>ident
</term>
75 <listitem><para>A debugging tool to report the identity of the current
76 disc as well as the stored file name
84 <refsect1><title>Options
</title>
88 <varlistentry><term><option>-d
</option></term><term><option>--cdrom
</option></term>
89 <listitem><para>Mount point; specify the location to mount the cdrom. This
90 mount point must be listed in
<filename>/etc/fstab
</filename> and
92 Configuration Item:
<literal>Acquire::cdrom::mount
</literal>.
97 <varlistentry><term><option>-r
</option></term><term><option>--rename
</option></term>
98 <listitem><para>Rename a disc; change the label of a disk or override the
99 disks given label. This option will cause
<command>apt-cdrom
</command> to
100 prompt for a new label.
101 Configuration Item:
<literal>APT::CDROM::Rename
</literal>.
106 <varlistentry><term><option>-m
</option></term><term><option>--no-mount
</option></term>
107 <listitem><para>No mounting; prevent
<command>apt-cdrom
</command> from
108 mounting and unmounting the mount point.
109 Configuration Item:
<literal>APT::CDROM::NoMount
</literal>.
114 <varlistentry><term><option>-f
</option></term><term><option>--fast
</option></term>
115 <listitem><para>Fast Copy; Assume the package files are valid and do not
116 check every package. This option should be used only if
117 <command>apt-cdrom
</command> has been run on this disc before and did not
119 Configuration Item:
<literal>APT::CDROM::Fast
</literal>.
124 <varlistentry><term><option>-a
</option></term><term><option>--thorough
</option></term>
125 <listitem><para>Thorough Package Scan; This option may be needed with some
126 old Debian
1.1/
1.2 discs that have Package files in strange places. It
127 takes much longer to scan the CD but will pick them all up.
132 <varlistentry><term><option>-n
</option></term>
133 <term><option>--just-print
</option></term>
134 <term><option>--recon
</option></term>
135 <term><option>--no-act
</option></term>
136 <listitem><para>No Changes; Do not change the &sources-list; file and do
137 not write index files. Everything is still checked however.
138 Configuration Item:
<literal>APT::CDROM::NoAct
</literal>.
148 <refsect1><title>See Also
</title>
149 <para>&apt-conf;, &apt-get;, &sources-list;
153 <refsect1><title>Diagnostics
</title>
154 <para><command>apt-cdrom
</command> returns zero on normal operation, decimal
100 on error.