Difference between revisions of "Snap list --all"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
snap list --all | [[awk]] '/disabled/{print $1, $3}' | 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 == |
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: