#include <hallo.h>
* Helge Kreutzmann [Sun, Jul 17 2011, 10:45:19AM]:

> Since apt-proxy was removed from Debian I currently migrate to apt-cacher-ng. 
> As far as I can see, apt-cacher-ng deletes files by date (i.e. which are older
> than x days). 

Sorry, that is not the case.

First, not simply by date but after some grace period after the files
became no longer DOWNLOADABLE. Second, if you say "older than" then you
should mention which time points you compare (creation? storage time?)
otherwise I don't know what you mean.

In fact, it deletes them after X days after they became
no longer downloadable. As long as the index files (like Packages.*) are
good and can be checked by download lookups, the files referenced
therein will stay in the cache.

The potential pitfall in this scheme is the renaming of stable
to oldstable. If nobody ever downloaded from oldstable then the server
won't know about it. But when it was used once before or within the
grace period then the problem will naturally disappear.

Now, does this provide a sufficient solution to your needs or do we
still need version based tracking?

Regards,
Eduard.

> It would be great if apt-cacher-ng would instead (configurable) delete files 
> by
> version, i.e. the latest n versions remain in the cache. This has several
> benefits:
> a) If a deb is installed much later, no redownload is necessary
> b) If an upgrade fails and the package releases seldomly, then the recent 
>    version is still there even though it was downloaded much earlier
> c) If a package is removed from Debian it is still in the cache, possibly for 
>    years, so if a later reference is needed (e.g. a (temporary) reinstall is
>    necessary) then it is still present
> 
> It would be great if the kind of processing (by date or by package version)
> could become configurable then.

-- 
Vorsicht im Vertrauen ist allerdings notwendig; aber noch notwendiger
Vorsicht im Mißtrauen.
                -- Josef Eötvös



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to