APT Proxy

Configure >


I still can't get this to work. Approx is called by a super-server, such as rinetd or xinetd.

set the mirror and un-comment some lines in the file


The file uses aliases followed by mirror addresses. The aliases are used in the sources.list file, tagged onto "server:port" e.g.

How it can work for devuan I'm not sure, probably by ignoring aliases and including the devuan repository path in sources, eg.
deb http://approx:9999/deb.devuan.org/merged/dists/beowulf

Or with only the apt conf proxy file:
and paste in this

then setup xinetd
And append following text:
user=approx or root?

To restart xinetd service type the command:
# /etc/init.d/xinetd restart

To stop xinetd service type the command:
# /etc/init.d/xinetd stop

To stop xinetd service type the command:
# /etc/init.d/xinetd start

Verify that xinetd is running
# /etc/init.d/xinetd status

(only gives partial detail!)

import the apt cache into approx cache (only works if deb files are recent)


This proxy works very well indeed, and it requires less work to setup!


Install with

edit the conf file:
and uncheck these lines

ReportPage: acng-report.html
PidFile: /var/run/apt-cacher-ng/pid

and ignore the sources lines

save the file then:

Add the file /etc/apt/apt.conf.d/99HttpProxy with this content

/etc/apt/sources.list ??
add localhost:3142/ before deb.devuan.org

import deb files
(or use ln to make symlinks)

open in browser: http://localhost:3142
and click Report link
then Click Start import