Skip to content

Instantly share code, notes, and snippets.

@gwenall
Forked from marvell/remove_apt_cache
Created March 1, 2019 16:36
Show Gist options
  • Save gwenall/32fcfa35dd0f9559ef5cec7726284077 to your computer and use it in GitHub Desktop.
Save gwenall/32fcfa35dd0f9559ef5cec7726284077 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