tags: - ubuntu categories: - informational comments: true

date: 2022-04-23 00:00:00

DESCRIPTION

Disable files in /var/cache/apt

ERRORS

VERIFICATION

COMMANDS

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

References

https://sleeplessbeastie.eu/2017/10/02/how-to-disable-the-apt-cache/