#!/bin/bash
set -eu # Find all disabled snaps and -weight: 500;">remove them
-weight: 600;">sudo snap list --all | awk '/disabled/{print $1, $3}' | while read snapname revision; do -weight: 600;">sudo snap -weight: 500;">remove "$snapname" --revision="$revision" done
#!/bin/bash
set -eu # Find all disabled snaps and -weight: 500;">remove them
-weight: 600;">sudo snap list --all | awk '/disabled/{print $1, $3}' | while read snapname revision; do -weight: 600;">sudo snap -weight: 500;">remove "$snapname" --revision="$revision" done
#!/bin/bash
set -eu # Find all disabled snaps and -weight: 500;">remove them
-weight: 600;">sudo snap list --all | awk '/disabled/{print $1, $3}' | while read snapname revision; do -weight: 600;">sudo snap -weight: 500;">remove "$snapname" --revision="$revision" done
flatpak uninstall --unused
flatpak uninstall --unused
flatpak uninstall --unused - snap list --all lists every snap installed, including the inactive older versions.
- awk '/disabled/{print $1, $3}' filters that list to only grab the names and revision numbers of the snaps marked as "disabled".
- The while loop iterates through them and safely runs the snap -weight: 500;">remove command for those specific old revisions.