User Tools

Site Tools


linux:debian:approx

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:debian:approx [2016/01/14 13:15] (current)
ozan created
Line 1: Line 1:
 +===== How to Setup Approx =====
  
 +If you have a few number Debian or Ubuntu machines, you may want to save some bandwidth and speed up package installations. This can be achieved with the help of ''​approx'',​ which is an HTTP-based proxy server for Debian-style package archives. This tutorial is based on Debian 8 (jessie).
 +
 +Firstly, install the approx package
 +<code bash>
 +apt-get install approx
 +</​code>​
 +
 +After installation,​ you need to edit the configuration file of approx that is ''/​etc/​approx/​approx.conf''​. My configuration is like this:
 +<​code>​
 +debian ​         http://​ftp.tr.debian.org/​debian/​
 +security ​       http://​security.debian.org/​
 +</​code>​
 +Change the debian mirror to your favorite mirror. [[http://​www.debian.org/​mirror/​list|List of Debian mirrors]]
 +
 +There are some parameters for approx which can be seen with ''​man 5 approx.conf''​ command. I did not change any parameter but you may need it.
 +I use approx for my custom debian builds with Simple-CDD so I don't need to change my ''/​etc/​apt/​sources.list''​ file.
 +If you need, change your ''​sources.list''​ file like this to forward the apt requests to approx.
 +
 +<file text sources.list>​
 +deb http://​127.0.0.1:​9999/​debian jessie main contrib non-free
 +deb http://​127.0.0.1:​9999/​security jessie/​updates main contrib non-free
 +deb-src http://​127.0.0.1:​9999/​debian jessie main contrib non-free
 +</​file>​
 +
 +You will save bandwidth and time.
 +Enjoy.
 +{{tag>​approx debian jessie proxy cache apt simple-cdd}}
 +~~DISCUSSION~~
linux/debian/approx.txt ยท Last modified: 2016/01/14 13:15 by ozan