]> spindle.queued.net Git - xodist/blob - README.approx
README.approx: update documentation
[xodist] / README.approx
1 Problem: every time you use mkchroot.sh the hundreds of megabytes of
2 packages are downloaded again.
3
4 Solution: set up the approx package to cache these packages.
5
6 1.  install the approx package,
7
8         % sudo aptitude install approx
9
10 2.  add the following lines to /etc/approx/approx.conf,
11
12 debian          http://http.us.debian.org/debian
13 security        http://security.debian.org/
14 backports       http://backports.debian.org/debian-backports
15
16 3.  restart approx (not required when running approx from inetd),
17
18         % sudo /etc/init.d/approx restart
19
20 4.  follow README, but during the creation of the root filesystem, add
21 the --local-apt-mirror option, like this:
22
23         sudo ./mkchroot.sh \
24             --config-type debxo-lxde \
25             --local-apt-mirror \
26 "deb http://localhost:9999/debian squeeze main contrib non-free
27 deb http://localhost:9999/security squeeze/updates main contrib non-free
28 deb http://localhost:9999/backports squeeze-backports main contrib non-free" \
29             debxo-lxde