I create a script to automatically generate "Packages" file to read by apt-get, so you can easily update yours when you have new debian packages.
this is not an advance way to do it, but it's work for me .

just create file genlocdeb contain below:

#!/bin/sh
find . -name "*.deb" > allfile
dpkg-scanpackages . allfile > Packages

don't forget to make it as executable by

chmod +x genlocdeb

for example you put your files in /mnt/hda5/download/debian (just like in my computer), then add this line to your /etc/apt/sources.list

deb file:/mnt/hda5/download/debian ./

don't forget to run 'genlocdeb' in that directory

after that, just run :

apt-get update

Now, you can apt-get install to install debian packages.



hmm...I forgot where I got this refference, if you know, just reply to this article ok.



1 Comment
t4mp4h wrote on Mar 24
i'll do the same things
Add a Comment
   
© 2008 Multiply, Inc.    About · Blog · Terms · Privacy · Corp Info · Contact Us · Help