PDA

View Full Version : Adding a directory to the sources lists



qa1433
February 24th, 2005, 04:10 AM
Hi all,
I am sure that this question has been asked before. However, I have searched the forum to no avail.

My question is how to add a file folder to the source list?
The file path in question is:
/home/qa1433/downloads

Is it possible to add a directory to the source file?

Thanks you in advance for your any help you provide,
paul

leviatan
February 24th, 2005, 08:05 PM
Hi,

cd /home/qa1433
dpkg-scanpackages downloads | gzip > downloads/Packages.gz

Add the following line in /etc/apt/sources.list:
deb file:/home/qa1433 downloads/

apt-get update

Look here for details:
http://www.debian.org/doc/manuals/apt-howto/ch-basico.en.html#s-dpkg-scanpackages

Regards,

leviatan

leviatan
February 24th, 2005, 08:26 PM
Sorry, override file is mandatory:

dpkg-scanpackages downloads /dev/null | gzip > downloads/Packages.gz

Regrds,

leviatan

qa1433
February 27th, 2005, 06:43 PM
leviatan,
Thanks for the info and fix.
paul