#575860 apt-cacher-ng: access repository with a regular web browser

Package:
apt-cacher-ng
Source:
apt-cacher-ng
Description:
caching proxy server for software repositories
Submitter:
Toni Mueller
Date:
2010-05-08 21:03:03 UTC
Severity:
wishlist
#575860#5
Date:
2010-03-29 21:52:59 UTC
From:
To:
Hi,

trying to get up to speed with apt-cacher-ng and to debug my settings,
I'd much appreciate if the web interface could provide an URI space to
inspect the repositories' contents. The contents should be presented in
exactly the same way than it is presented to apt(itude) clients.
Ideally, information about files can be displayed, too, eg.
(precomputed?) checksums, or the source of a particular file.

Kind regards,
--Toni++

#575860#10
Date:
2010-05-08 20:59:10 UTC
From:
To:
#include <hallo.h>
* Toni Mueller [Mon, Mar 29 2010, 11:52:59PM]:

Here are too many wishes in a single request.

First, they contents are not "presented" to apt. They are returned on
request, but there are many URLs that lead to the delivery of the same
file. Therefore, the only thing that makes sense is the view on the
ordinary directory structure.

Second, you can use any regular web server that supports directory
browsing to display the cache contents. Just create a symlink from cache
directory to something in /var/www, et voila.

The original source URLs and the download time can be found in the .head
files. I think it should be fairly easy to create a CGI script that
would embedd that information into the directory view but I have no
real motivation to write it. Contributions are welcome ;-).

Regards,
Eduard.