tags: - ubuntu categories: - informational comments: true
Disable files in /var/cache/apt
cat >/etc/apt/apt.conf.d/00_disable-cache-files<<EOF
Dir::Cache::pkgcache "";
Dir::Cache::srcpkgcache "";
EOF
Remove package and source cache lookup files.
rm /var/cache/apt/pkgcache.bin
rm /var/cache/apt/srcpkgcache.bin
https://sleeplessbeastie.eu/2017/10/02/how-to-disable-the-apt-cache/