9:09 PM

Installing Packages From CD/DVD

Software packages for Debian can be installed either from an installation disk or by downloading the packages from the internet.
In order to download softwares from an archive the cd/dvd must be added to the file sources.list. The sources.list file can be modified by the command apt-cdrom




# apt-cdrom add
Using CD-ROM mount point /cdrom/
Unmounting CD-ROMPlease insert a Disc in the drive and press enterMounting CD-ROMIdentifying.. [0eabc03d10414e59dfa1622326e20da7-2]
Scanning Disc for index files..  Found 1 package indexes and 0 source indexes.
This Disc is called:
 'Libranet GNU/Linux 2.8.1 CD2'
Reading Package Indexes... Done
Wrote 1271 records.
Writing new source listSource List entries for this Disc are:
deb cdrom:[Libranet GNU/Linux 2.8.1 CD2]/ archive/
Repeat this process for the rest of the CDs in your set.


This is the only way to add cd archives to the source.list



In order to identify the disk in use  the command apt-cdrom ident can be used



$ apt-cdrom ident
Using CD-ROM mount point /cdrom/
Mounting CD-ROMIdentifying.. [0eabc03d10414e59dfa1622326e20da7-2]
Stored Label: 'Libranet GNU/Linux 2.8.1 CD2'
$




Now the packages can be installed from the cd drive by the use of apt-get.
In order to endure that the packages are installed form the cd comment all other lines in the source.list file.Run aptitude update to update the changes made to the sources.list

0 comments: