How to read repository from dvd iso image in Debian

Mount the CD image

1) You must login as a root user, if not root user then switch to root user using following command:
$ su -

2) Create the directory i.e. mount point:
# mkdir -p /media/cdrom

3) Use mount command as follows to mount iso file called disk1.iso:
# mount -o loop disk1.iso /media/cdrom

4) Change directory to list files stored inside an ISO image:
# cd /media/cdrom
# ls -l

Edit the /etc/apt/sources.list

Add the following lines to sources.list

deb file:///media/cdrom oldstable main contrib non-free

deb-src file:///media/cdrom oldstable main contrib non-free

Depending on your Debian version and distribution you want to use, oldstable can be substituted.

See more here: https://wiki.debian.org/SourcesList 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s