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

Bug#830617: apt: "apt-get clean" makes apt-cache slow



On Sat, Jul 09, 2016 at 09:26:11PM +0200, Jakub Wilk wrote:
> Package: apt
> Version: 1.3~pre2
> Usertags: serious
> 
> "apt-get clean" makes apt-cache slooooooooooow:
> 
> $ time apt-cache show apt > /dev/null
> 
> real    0m0.270s
> user    0m0.232s
> sys     0m0.028s
> 
> $ sudo apt-get clean
> 
> $ time apt-cache show apt > /dev/null
> 
> real    0m4.118s
> user    0m3.072s
> sys     0m0.312s
> 
> 
> The manpage says that this command "clean clears out the local repository of
> retrieved package files" so I wouldn't expect it to have any effect on
> apt-cache.
> 

That was the case, but we made clean clean the cache files too to catch
broken caches. So it's a documentation issue (or we could regenerate the
cache during  clean...)

-- 
Debian Developer - deb.li/jak | jak-linux.org - free software dev

When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to (`inline'). Thank you.


Reply to: