-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.approx
More file actions
29 lines (20 loc) · 1005 Bytes
/
Copy pathREADME.approx
File metadata and controls
29 lines (20 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Problem: every time you use mkchroot.sh the hundreds of megabytes of
packages are downloaded again.
Solution: set up the approx package to cache these packages.
1. install the approx package,
% sudo aptitude install approx
2. add the following lines to /etc/approx/approx.conf,
debian http://http.us.debian.org/debian
security http://security.debian.org/
backports http://backports.debian.org/debian-backports
3. restart approx (not required when running approx from inetd),
% sudo /etc/init.d/approx restart
4. follow README, but during the creation of the root filesystem, add
the --local-apt-mirror option, like this:
sudo ./mkchroot.sh \
--config-type debxo-lxde \
--local-apt-mirror \
"deb http://localhost:9999/debian squeeze main contrib non-free
deb http://localhost:9999/security squeeze/updates main contrib non-free
deb http://localhost:9999/backports squeeze-backports main contrib non-free" \
debxo-lxde