Skip to content

Instantly share code, notes, and snippets.

@puccaso
Forked from marvell/remove_apt_cache
Created January 25, 2021 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save puccaso/3b3350c190b6a8c75606b14bbbe88419 to your computer and use it in GitHub Desktop.
Save puccaso/3b3350c190b6a8c75606b14bbbe88419 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