[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#753531: apt-get clean executes 'rm /*' if Dir::Cache is set to ""



On Wed, 2014-07-02 at 21:41 +0200, Cédric Barboiron wrote:
> Setting Dir::Cache::archives and Dir::Cache to the empty string (as
> instructed by man 5 apt.conf) do NOT disable cache but set it to '/'.

fwiw, I believe you're misreading apt.conf(5).

"Generation of caches can be turned off by setting their names to the
empty string. This will slow down startup but save disk space. It is
probably preferable to turn off the pkgcache rather than the
srcpkgcache."

Dir::Cache is *not* "their names", nor is Dir::Cache::Archives.
"apt-config dump" suggests that the text in question applies to:

Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";

Regards,

Adam


Reply to: