snap list --all

From wikieduonline
Jump to navigation Jump to search

snap list --all
Name  Version      Rev   Tracking       Publisher   Notes
core  16-2.45.2    9665  latest/stable  canonical✓  core,disabled
core  16-2.45.3.1  9804  latest/stable  canonical✓  core
snap list --all | awk '/disabled/{print $1, $3}'
#!/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

Related commands[edit]

See also[edit]

Advertising: