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

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



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.


-- System Information:
Debian Release: stretch/sid
 APT prefers unstable
 APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 4.6.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages apt depends on:
ii  adduser                 3.115
ii  debian-archive-keyring  2014.3
ii  gpgv                    1.4.20-6
ii  init-system-helpers     1.37
ii  libapt-pkg5.0           1.3~pre2
ii  libc6                   2.23-1
ii  libgcc1                 1:6.1.1-9
ii  libstdc++6              6.1.1-9

Versions of packages apt recommends:
ii  gnupg   1.4.20-6
ii  gnupg2  2.1.11-7

--
Jakub Wilk


Reply to: