To install packages from CD or a set of CD’s, a CD-ROM can be used for installing packages or updating a system automatically with APT. Use apt-cdrom from the command line to add CD’s to the apt sources.list file.
In a terminal type the following command to add CD-ROM to the sources.list file:
sudo apt-cdrom add
If the CD-ROM configuration is a little unusual, use the following options:
-h – program help
-d directory – CD-ROM mount point
-r – Rename a recognized CD-ROM
-m – No mounting
-f – Fast mode, don’t check package files
-a – Thorough scan mode
For example:
sudo apt-cdrom -d /home/mycdrom add
A CD-ROM can also be identified without adding it to the list:
sudo apt-cdrom ident
Note that this program only works if your CD-ROM is properly configured in the system’s
/etc/fstab