Wednesday, April 23, 2008

Offline Package Repository in Debian

If you are not connected to internet, then still you can install packages
from Debian Installer DVDs. (Many thanks to my friend P. A. Venkatesh,
for inspiring me to use Debian).

1. Configuration for /etc/apt/sources.list. Just put these 3 lines in it.

deb file:///mnt/debian/disk1/ etch main contrib

deb file:///mnt/debian/disk2/ etch main contrib

deb file:///mnt/debian/disk3/ etch main contrib

2. Create directories.

# mkdir -p /mnt/debian/disk1
# mkdir /mnt/debian/disk2
# mkdir /mnt/debian/disk3

3. Mount *.iso (ISO images) file to to above directories.

# mount -o loop /debian-40r1-amd64-DVD-1.iso /mnt/debian/disk1
# mount -o loop /debian-40r1-amd64-DVD-2.iso /mnt/debian/disk2
# mount -o loop /debian-40r1-amd64-DVD-3.iso /mnt/debian/disk3

4. Now start synaptic package manager and click reload button. And Viola!
you will be able to see packages. Now you can install any package you want. :)

No comments: