src.dualinventive.com/devops/ansible/files/apt.conf.d/02no-cache

12 lines
569 B
Plaintext

# /etc/apt/apt.conf.d/02no-cache
# Disable apt caches. Apt stores two caches in /var/cache/apt/: srcpkgcache.bin is
# rather useless these days, and pkgcache.bin is only needed for faster lookups
# with apt-cache (software-center has its own cache). Removing those two buys 26 MB
# for the price of apt-cache taking an extra two seconds for each lookup.
# An image build needs to rm /var/cache/apt/*.bin. However, the next apt-get update
# would bring it back, thus the caches need to be disabled in the configuration.
Dir::Cache {
srcpkgcache "";
pkgcache "";
}