1 <!-- -*- mode: sgml; mode: fold -*- -->
2 <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
4 <!ENTITY % aptent SYSTEM "apt.ent">
13 <refentrytitle>apt-cdrom</>
17 <!-- Man page title -->
20 <refpurpose>APT CDROM managment utility</>
27 <arg><option>-hvrmfan</></arg>
28 <arg><option>-d=<replaceable/cdrom mount point/</></arg>
29 <arg><option>-o=<replaceable/config string/</></arg>
30 <arg><option>-c=<replaceable/file/</></arg>
38 <RefSect1><Title>Description</>
40 <command/apt-cdrom/ is used to add a new CDROM to APTs list of available
41 sources. <command/apt-cdrom/ takes care of determining the structure of
42 the disc as well as correcting for several possible mis-burns and
43 verifying the index files.
45 It is necessary to use <command/apt-cdrom/ to add CDs to the APT system,
46 it cannot be done by hand. Furthermore each disk in a multi-cd set must be
47 inserted and scanned separately to account for possible mis-burns.
49 Unless the <option/-h/, or <option/--help/ option is given one of the
50 above commands must be present.
53 <VarListEntry><Term>add</Term>
55 <literal/add/ is used to add a new disc to the 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/</> directory you will be prompted for a descriptive
62 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</>
67 <VarListEntry><Term>ident</Term>
69 A debugging tool to report the identity of the current disc as well
70 as the stored file name
75 <RefSect1><Title>Options</>
79 <VarListEntry><term><option/-d/</><term><option/--cdrom/</>
81 Mount point; specify the location to mount the cdrom. This mount
82 point must be listed in <filename>/etc/fstab</> and propely configured.
83 Configuration Item: <literal/Acquire::cdrom::mount/.
86 <VarListEntry><term><option/-r/</><term><option/--rename/</>
88 Rename a disc; change the label of a disk or override the disks
89 given label. This option will cause <command/apt-cdrom/ to prompt for
91 Configuration Item: <literal/APT::CDROM::Rename/.
94 <VarListEntry><term><option/-m/</><term><option/--no-mount/</>
96 No mounting; prevent <command/apt-cdrom/ from mounting and unmounting
98 Configuration Item: <literal/APT::CDROM::NoMount/.
101 <VarListEntry><term><option/-f/</><term><option/--fast/</>
103 Fast Copy; Assume the package files are valid and do not check
104 every package. This option should be used only if
105 <command/apt-cdrom/ has been run on this disc before and did not detect
107 Configuration Item: <literal/APT::CDROM::Fast/.
110 <VarListEntry><term><option/-a/</><term><option/--thorough/</>
112 Thorough Package Scan; This option may be needed with some old
113 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.
117 <VarListEntry><term><option/-n/</>
118 <term><option/--just-print/</>
119 <term><option/--recon/</>
120 <term><option/--no-act/</>
122 No Changes; Do not change the &sources-list; file and do not
123 write index files. Everything is still checked however.
124 Configuration Item: <literal/APT::CDROM::NoAct/.
132 <RefSect1><Title>See Also</>
134 &apt-conf;, &apt-get;, &sources-list;
137 <RefSect1><Title>Diagnostics</>
139 <command/apt-cdrom/ returns zero on normal operation, decimal 100 on error.