You can mount and use Debian CD images like a repository. Let’s look how can we do that.
I have 4 Debian DVD image. First step, we are mounting to images. I create 4 directory in /mnt. If you want to mount images somewhere else, create this directories in whatever you want.
# mkdir debian-40r0-i386-DVD-1 debian-40r0-i386-DVD-2 debian-40r0-i386-DVD-3 debian-update-4.0r1-i386-DVD-1
And now, we are adding mount information to /etc/fstab for automatic mount to system start. My DVD images in: /home/onur/Downloads/etch directory. If your images in another place; write images places. Open /etc/fstab and add those lines:
/home/onur/Downloads/etch/debian-40r0-i386-DVD-1.iso /mnt/debian-40r0-i386-DVD-1 iso9660 ro,loop 0 0/home/onur/Downloads/etch/debian-40r0-i386-DVD-2.iso /mnt/debian-40r0-i386-DVD-2 iso9660 ro,loop 0 0/home/onur/Downloads/etch/debian-40r0-i386-DVD-3.iso /mnt/debian-40r0-i386-DVD-3 iso9660 ro,loop 0 0/home/onur/Downloads/etch/debian-update-4.0r1-i386-DVD-1.iso /mnt/debian-update-4.0r1-i386-DVD-1 iso9660 ro,loop 0 0
After then you can mount images with using mount command.
# mount /mnt/debian-40r0-i386-DVD-1# mount /mnt/debian-40r0-i386-DVD-2# mount /mnt/debian-40r0-i386-DVD-3# mount /mnt/debian-update-4.0r1-i386-DVD-1
Now we are adding this local repositories to apt’s sources.list file. Open /etc/apt/sources.list and add those lines:
deb file:/mnt/debian-40r0-i386-DVD-1 etch main contribdeb file:/mnt/debian-40r0-i386-DVD-2 etch main contribdeb file:/mnt/debian-40r0-i386-DVD-3 etch main contribdeb file:/mnt/debian-update-4.0r1-i386-DVD-1 etch main contrib
After you did we need to show this repositories to apt. Use apt-get update command.
# apt-get update
Everythins ready. You need to remove other official http debian repositories for apt’s use new local repository.
This is my first English article, i am learning English. Sorry for gramer.
Thanks.