This documents summarises what I have found about settling a Debian repository.

I have taken care of providing the most correct information at the time of writing but if you find any inaccuracy, please, fix it.

In [http://www.debian.org/doc/manuals/repository-howto/repository-howto.html Aaron Isotton how-to] two kinds of repositories are defined, the trivial one (where the user of the repository has to specify an exact path to the packages) and the automatic one (that mimic the official Debian repositories where only the base path, distribution and component have to be specified and the apt-get magic occurs). His how-to describes how to setup trivial repositories with dpkg-scansources and dpkg-scanpackages. Such a topic is also covered by [Oohara Yuuma how-to http://www.interq.or.jp/libra/oohara/apt-gettable/apt-gettable/] and [apt how-to http://www.debian.org/doc/manuals/apt-howto/ch-basico.html#s-dpkg-scanpackages].

The settling of automatic repositories is covered by [http://familiasanchez.net/~sanchezr/?page=debrepository Roberto Sanchez how-to] who gives relevant scripts. Pools are nor covered there.

There are also packaged (or not) tools in Debian in order to perform the task.

dak (Debian Archive Kit)

debpool

reprepro (formerly known as mirrorer)

debarchiver

mini-dinstall

apt-ftparchive

dpkg-scanpackages and dpkg-scansources