Name

apt-cdrom

Synopsis

apt-cdrom [options]command

Add a new CD-ROM to APT’s list of available sources. The database of CD-ROM IDs that APT maintains is /var/lib/apt/cdroms.list.

Commands

add

Add a CD-ROM to the source list.

ident

Print the identity of the current CD-ROM and the stored filename. Used for debugging.

Options

The common options listed earlier are also accepted.

-a, --thorough

Do a thorough package scan. May be needed with some old Debian CD-ROMs.

-dmount-point, --cdrom=mount-point

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 the disk has been run before without error. The configuration option is APT::CDROM::Fast.

-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.

-r, --rename

Prompt for a new label and rename the disk to the new value. The configuration option is APT::CDROM::Rename.

Get Unix in a Nutshell, 4th 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.