You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

10 lines
365 B

#!/bin/bash
# https://gist.github.com/anthonyaxenov/524faa8636df794a886cb80f73f55e5e
# https://itsfoss.com/free-up-space-ubuntu-linux/
# Remove old revisions of snaps
# CLOSE ALL SNAPS BEFORE RUNNING THIS
set -eu
snap list --all | awk '/disabled/{print $1, $3}' |
while read snapname revision; do
snap remove "$snapname" --revision="$revision"
done