Is it possible to add a location/folder on my hard disk (ex: /media/Data/Ubuntu) to the sources.list? If possible,how?
There are 4 steps to setting up a simple repository for yourself:
Type in a terminal
Create a directory where you will keep your packages.
Now move your packages into the directory you've just created.
The Script update-mydebs
It's a simple three liner:
Cut and paste the above into gedit, and save it as update-mydebs in ~/bin. (the tilde '~' means your home directory. If ~/bin does not exist, create it: Ubuntu will put that directory in your PATH. It's a good place to put personal scripts). Next, make the script executable:
add the line
to your /etc/apt/sources.list, and you're done.
Using the Repository
Whenever you put a new deb in the mydebs directory, run
Now your local packages can be manipulated with Synaptic, aptitude and the apt commands: apt-get, apt-cache, etc. When you attempt to apt-get install, any dependencies will be resolved for you, as long as they can be met.