Skip to content

Instantly share code, notes, and snippets.

@nelaaro
Forked from marvell/remove_apt_cache
Created January 28, 2019 13:49
Show Gist options
  • Save nelaaro/4471788513e6611438b0a45e8c202456 to your computer and use it in GitHub Desktop.
Save nelaaro/4471788513e6611438b0a45e8c202456 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