linux:debian:apt-mirror
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | linux:debian:apt-mirror [2013/06/23 01:30] (current) – created stybla | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== apt-mirror - your local Debian mirror ====== | ||
+ | Having your local Debian mirror can be handy. Especially if you do | ||
+ | install Debian via netboot. Thanks to '' | ||
+ | task to do. | ||
+ | |||
+ | First of all, you need '' | ||
+ | |||
+ | < | ||
+ | # apt-get install apt-mirror | ||
+ | </ | ||
+ | |||
+ | Then, you have to edit ''/ | ||
+ | * what | ||
+ | * which mirror to use as a source | ||
+ | * where to store mirrored data or you can use default ''/ | ||
+ | * adjust number of threads based on power of your hardware | ||
+ | |||
+ | < | ||
+ | set nthreads 10 | ||
+ | set _tilde 0 | ||
+ | |||
+ | deb http:// | ||
+ | deb http:// | ||
+ | deb-amd64 http:// | ||
+ | # in case you're going to use your local mirror for preseeding ;;; ugly, but works | ||
+ | deb http:// | ||
+ | </ | ||
+ | |||
+ | Also, make sure you have enough space available, eg. Wheezy in this configuration takes approximately 41GB. | ||
+ | |||
+ | After you're set, run ''# | ||
+ | similar output as shown below. Sadly, my mirror is up-to-date. It will take some time, | ||
+ | so I recommend you to use '' | ||
+ | |||
+ | < | ||
+ | # su apt-mirror -c ' | ||
+ | Downloading 18 index files using 10 threads... | ||
+ | Begin time: Sun Jun 23 08:10:58 2013 | ||
+ | [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]... | ||
+ | End time: Sun Jun 23 08:11:00 2013 | ||
+ | |||
+ | Proceed indexes: [PPPP] | ||
+ | |||
+ | 0.0 bytes will be downloaded into archive. | ||
+ | Downloading 0 archive files using 0 threads... | ||
+ | Begin time: Sun Jun 23 08:13:44 2013 | ||
+ | [0]... | ||
+ | End time: Sun Jun 23 08:13:44 2013 | ||
+ | |||
+ | 0.0 bytes in 0 files and 0 directories can be freed. | ||
+ | Run / | ||
+ | |||
+ | Running the Post Mirror script ... | ||
+ | (/ | ||
+ | |||
+ | Post Mirror script has completed. See above output for any possible errors. | ||
+ | </ | ||
+ | |||
+ | Congratulations, | ||
+ | is to keep your local mirror up-to-date automatically. Copy-pasted below is | ||
+ | an cron example from documentation which is sufficient. | ||
+ | |||
+ | < | ||
+ | 0 4 * * * | ||
+ | </ |
linux/debian/apt-mirror.txt · Last modified: 2013/06/23 01:30 by stybla