Skip to content

Instantly share code, notes, and snippets.

@dennyweiss
Forked from marvell/remove_apt_cache
Created February 15, 2020 09:22
Show Gist options
  • Save dennyweiss/63415f56f404b5ce7b8e35adf1393305 to your computer and use it in GitHub Desktop.
Save dennyweiss/63415f56f404b5ce7b8e35adf1393305 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