Skip to content

Instantly share code, notes, and snippets.

@geekman
Last active April 9, 2019 15:52
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 geekman/f093247d04d1e029b2a2ce53cc94733b to your computer and use it in GitHub Desktop.
Save geekman/f093247d04d1e029b2a2ce53cc94733b to your computer and use it in GitHub Desktop.
script to remove cruft from Ubuntu post-install
#!/bin/sh
# run as root
apt remove cloud-init unattended-upgrades popularity-contest landscape-common update-manager-core
apt autoremove
# disable upgrade units & timers
systemctl disable --now apt-daily{,-upgrade}.{timer,service}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment