Skip to content

Instantly share code, notes, and snippets.

@vladbabii
Created January 13, 2017 13:41
Show Gist options
  • Save vladbabii/6f6739fc0a2dd9cac9a2b358ed826b3f to your computer and use it in GitHub Desktop.
Save vladbabii/6f6739fc0a2dd9cac9a2b358ed826b3f to your computer and use it in GitHub Desktop.
Remove apt cached deb files
echo "DPkg::Post-Invoke {\"/bin/rm -f /var/cache/apt/archives/*.deb || true\";};" > /etc/apt/apt.conf.d/clean
@vladbabii
Copy link
Author

I use an https://help.ubuntu.com/community/Apt-Cacher-Server so i have no need to cache the packages on each server individually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment