Sunday, January 24, 2010

Using ISO image as a repository in Ubuntu


Hi friends...!!!

I always wonder that is it really that much essential to have internet connection first if you are planning to switch to any open-source linux OS..?
If you also think like that then its totally a wrong thinking.. you can use your linux or unix OS without internet as efficiently as the user with internet connection. All you need is to know how to use your CD/DVD as a repository so that you can install applications by overcoming the dependencies...

I have recently installed Ubuntu on my machine and bad luck was the same day I was facing internet connection problem, so i was thinking that I am having all the applications i need in my DVD only so why cant I use that DVD as a Repository, and here is the procedure to how to do that...

Firstly make a ISO image of your DVD (now don't ask me how to do that..everyone knows this) and mount this image in your directory location which you want to use a path for this repository.


$ mount ubuntu_image.iso /mount/location/of/iso_image -o loop

After this make an entry in your /etc/apt/sources.list

$ sudo vim /etc/apt/sources.list

and make the following entry in it (you can add these lines anywhere in this file but try to add them at the bottom with some notations so that you easily figure-out for what purpose these entries are for)

deb file:/mounted/location/of/iso main restricted

and its done your local DVD repository is ready to server you the applications...

Hope this post will help you..

No comments:

Post a Comment