Skip to content

Instantly share code, notes, and snippets.

@mhelsley
Created December 14, 2020 00:12
Show Gist options
  • Save mhelsley/10dd17cd69f3a7bf9df971fba2710ad6 to your computer and use it in GitHub Desktop.
Save mhelsley/10dd17cd69f3a7bf9df971fba2710ad6 to your computer and use it in GitHub Desktop.
Remove snap droppings -- snaps leave stale revisions which incur startup cost by littering your system with systemd mount units and possibly more.
snap list --all | grep disabled | awk '{print $1 " " $3}' | while read SNAP REV ; do sudo snap remove $SNAP --revision $REV; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment