Difference between revisions of "Snap list --all"
Jump to navigation
Jump to search
(Redirected page to Snap list) Tags: New redirect, Mobile web edit, Mobile edit |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | # | + | {{lc}} |
+ | [[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 == | ||
+ | * <code>[[snap remove]]</code> | ||
+ | * [[Homebrew: list available package versions]] | ||
+ | |||
+ | == See also == | ||
+ | * {{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: