[Aptitude-devel] Bug#671780: aptitude: Please move ~/.aptitude/cache to $XDG_CACHE_HOME (default ~/.cache)

Daniel Hartwig mandyke at gmail.com
Fri Feb 28 15:59:38 UTC 2014

Control: tags -1 + pending

On 10 February 2014 06:43, Manuel A. Fernandez Montecelo
<manuel.montezelo at gmail.com> wrote:
> Hi,
> I created the attached patch, similar to Josh's but moving the cache
> if exists.  I am fine with integrating Josh's patch as well.

I will merge Josh's patch after some testing this weekend.

The name "XDG_CACHE_DIR/aptitude-download-cache" is not great.  In the
future we may want another file in there, such as binary cache of
aptitude pkgstates.  Changing the name to "aptitude/metadata", as that
is what this particular file is used for (changelogs now, perhaps
copyright file in the future).

> The reason for this new stab with the modified patch is because I
> think that somehow it's important to remove the litter and not leave
> ~/.aptitude/cache behind.

Lots going on there, too much for a simple cache file.

> I think that this file is small enough and loosing its contents
> unimportant enough that perhaps this is not needed (and the
> paraphernalia to achieve this is a bit ugly, and probably not
> foolproof).


>  But in that case perhaps we should remove instead of
> move?

Just a cache file, user can clean it up as they desire.

> Anyway, I think that it would be nice to fix this.

> Thanks Josh for
> bringing this to our attention and providing the patch.


More information about the Aptitude-devel mailing list