apt-mirror (1) - Linux Manuals

apt-mirror: apt sources mirroring tool


apt-mirror - apt sources mirroring tool


apt-mirror [configfile]


A small and efficient tool that lets you mirror a part of or the whole Debian GNU/Linux distribution or any other apt sources.

Main features:
 It uses a config similar to apts sources.list
 It's fully pool comply
 It supports multithreaded downloading
 It supports multiple architectures at the same time
 It can automatically remove unneeded files
 It works well on overloaded channel to internet
 It never produces an inconsistent mirror including while mirroring
 It works on all POSIX complied systems with perl and wget


apt-mirror uses /etc/apt-mirror.list as a configuration file. By default it is tuned to official debian mirror in Finland. Change it for your needs.

After you setup the configuration file you may run as root:

    # su - apt-mirror -c apt-mirror

Or uncomment line in /etc/cron.d/apt-mirror to enable daily mirror upgrades.


  Main configuration file

  Cron configuration template

  Mirror places here

  Place for temporarily downloaded indexes

  Log files placed here. URLs and MD5 summs also here.


Do not specify default http port (80) explicitly. (i.e. deb http://server:80/ sid ...)


Dmitry N. Hramtsov <hdn [at] nsu.ru>