Skip to content

Instantly share code, notes, and snippets.

@husjon
husjon / mirror.list
Created February 23, 2018 20:49 — forked from chusiang/mirror.list
Creating a Debian Repository with apt-mirror
It's very handy to have a local mirror of the Debian stable repository, especially if you want to do fast network installs and updates for multiple systems. By default, the Debian utility apt-mirror does a great job of pulling over packages, but to be able to use PXE netbooting and other cool tricks you need to do a few tweaks to its basic configuration.
#### START /etc/apt/mirror.list ####
set base_path /var/spool/apt-mirror
set mirror_path $base_path/mirror
set skel_path $base_path/skel
set var_path $base_path/var
set cleanscript $var_path/clean.sh