Creating local APT repository

I have long been wanting to make a local directory, which contains all my Debian packages, as a repository to be added in, /etc/apt/sources.list. Finally, I did it.

This is what I did,

cd $DEBS_DIR
pkg-scanpackages . /dev/null >Packages
deb file:$DEBS_DIR ./

09 Feb, 2007 linux