Skip to content

Instantly share code, notes, and snippets.

@cbluth
Forked from marvell/remove_apt_cache
Created June 4, 2018 19:25
Show Gist options
  • Save cbluth/ceed3a2973a8e8ea191a5acbbd7c7e24 to your computer and use it in GitHub Desktop.
Save cbluth/ceed3a2973a8e8ea191a5acbbd7c7e24 to your computer and use it in GitHub Desktop.
Remove APT cache (for Dockerfile)
apt-get clean autoclean
apt-get autoremove --yes
rm -rf /var/lib/{apt,dpkg,cache,log}/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment