Created
September 24, 2024 13:24
-
-
Save hawkeye64/faffce194f1facb8586f129f17190bd8 to your computer and use it in GitHub Desktop.
Remove disabled snaps from the local snap store
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
#!/usr/bin/env bash | |
snap list --all | awk '/disabled/{system("sudo snap remove " $1 " --revision=" $3)}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment