Wednesday, May 13, 2009

Adding a Local directory of deb packages as repository

There may be situation like, you have a directory full of packages that you want to install. How will you do that. Here is an easy way to add your directory with packages to your source list and directly install packages using synaptic or apt-get what ever you like

please go through the below listing to know how to do it.

cd /storage #assume that your directory is named storage
dpkg-scanpackages . /dev/null > Packages

note the "." and the capital P

then add

deb file://storage ./

to your apt sources.list file
apt-get update

apt-get install whatever...

No comments:

Post a Comment