Created
January 9, 2023 20:43
-
-
Save acosonic/4769aed1ee09c2290e43f9f5c65ac219 to your computer and use it in GitHub Desktop.
Ubuntu 20.04 clean snap versions cache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' | | |
while read pkg revision; do | |
sudo snap remove "$pkg" --revision="$revision" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment