Name
apt-cdrom
Synopsis
apt-cdrom [options] command
Description
Add a new CD-ROM to APT’s list of available sources. Currently, the
only command is add, which is
required (except with the --help
option). The database of CD-ROM IDs that APT maintains is
/var/state/apt/cdroms.list
.
Options
Options can be specified on the command line or they may be set in the configuration file. Boolean options set in the configuration file can be overridden on the command line in a number of different ways, a couple of which are --no- opt and - opt =no, where opt is the single-character or full name of the option.
- -a, --thorough
Do a thorough package scan. May be needed with some old Debian CD-ROMs.
- -c, --config-file
Specify a configuration file to be read after the default configuration file.
- -d, --cdrom
Specify the CD-ROM mount point, which must be listed in
/etc/fstab
. The configuration option is Acquire::cdrom::mount.- -f, --fast
Do a fast copy, assuming the files are valid and don’t all need checking. Specify this only if this disk has been run before without error. The configuration option is APT::CDROM::Fast.
- -h, --help
Print help message and exit.
- -m, --no-mount
Don’t mount or unmount the mount point. The configuration option is APT::CDROM::NoMount.
- -n, --just-print, --recon, --no-act
Check everything, but don’t actually make any changes. The configuration option is APT::CDROM::NoAct.
- -o, --option
Set a configuration option. Syntax is -o group::tool = option (e.g., APT::CDROM=Fast).
- -r, --rename ...
Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.