Difference between revisions of "Snap list --all"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
+
{{lc}}
 
  [[snap list]] --all
 
  [[snap list]] --all
 
  Name  Version      Rev  Tracking      Publisher  Notes
 
  Name  Version      Rev  Tracking      Publisher  Notes
Line 5: Line 5:
 
  core  16-2.45.3.1  9804  latest/stable  canonical✓  core
 
  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 ==
 
== Related commands ==
 
* <code>[[snap remove]]</code>
 
* <code>[[snap remove]]</code>
 +
* [[Homebrew: list available package versions]]
  
 
== See also ==
 
== See also ==
Line 13: Line 21:
  
 
[[Category:Snap]]
 
[[Category:Snap]]
 +
[[Category:Package manager]]

Latest revision as of 09:00, 11 October 2023

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: