wiki:linux:setup_apt_mirror
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
wiki:linux:setup_apt_mirror [2023/04/28 13:43] – removed - external edit (Unknown date) 127.0.0.1 | wiki:linux:setup_apt_mirror [2023/04/28 13:43] (current) – ↷ Page moved from wiki:setup_apt_mirror to wiki:linux:setup_apt_mirror Greg | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Create an Apt Repository Mirror with apt-mirror ====== | ||
+ | The goal of this guide is to set up a local Debian package mirror using the '' | ||
+ | |||
+ | ===== Install apt-mirror ===== | ||
+ | |||
+ | The version of '' | ||
+ | |||
+ | So first we will install Git to clone the repository: | ||
+ | |||
+ | < | ||
+ | |||
+ | Then we will find a suitable spot to install apt-mirror, clone the repository, and then symlink it to '' | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | git clone https:// | ||
+ | ln -s / | ||
+ | </ | ||
+ | |||
+ | ===== Configuring apt-mirror ===== | ||
+ | |||
+ | Now we need to set up apt-mirror to download our repositories. Before continuing, make sure you have a sizeable disk mounted somewhere on this system to store the downloaded repositories. For the sake of this demo I'm assuming you have a disk mounted at '' | ||
+ | |||
+ | Thankfully apt-mirror is easy to configure. It's basically just creating '' | ||
+ | |||
+ | < | ||
+ | ############# | ||
+ | # | ||
+ | set base_path | ||
+ | # | ||
+ | set mirror_path | ||
+ | # set skel_path | ||
+ | # set var_path | ||
+ | # set cleanscript $var_path/ | ||
+ | set defaultarch | ||
+ | # set postmirror_script $var_path/ | ||
+ | # set run_postmirror 0 | ||
+ | set nthreads | ||
+ | set _tilde 0 | ||
+ | # | ||
+ | ############# | ||
+ | |||
+ | # Debian 11 (Bullseye) | ||
+ | ... repos ... | ||
+ | |||
+ | clean ... | ||
+ | </ | ||
+ | |||
+ | ===== Install Apache ===== | ||
+ | |||
+ | Install Apache: | ||
+ | |||
+ | < |