Difference between revisions of "Snap remove"
Jump to navigation
Jump to search
(Created page with "{{Draft}} == See also == * {{snap}}") Tags: Mobile web edit, Mobile edit |
|||
(19 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{lowercase}} |
+ | <code>[[snap]] [[remove]] SNAP_NAME --revision=5</code> [http://manpages.org/snap|man] | ||
+ | == Examples == | ||
+ | snap remove SNAP_NAME | ||
+ | SNAP_NAME removed | ||
+ | [[snap list --all]] | awk '/disabled/{print $1, $3}' | ||
+ | |||
+ | du -hs [[/var/lib/snapd/snaps/]] | ||
+ | #!/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 | ||
+ | du -hs /var/lib/snapd/snaps/ | ||
+ | |||
+ | [[core20]] (revision 1434) removed | ||
+ | [[firefox]] (revision 3131) removed | ||
+ | gnome-3-38-2004 (revision 99) removed | ||
+ | gnome-42-2204 (revision 132) removed | ||
+ | [[gtk-common-themes]] (revision 1519) removed | ||
+ | kubeadm (revision 3131) removed | ||
+ | kubectl (revision 3062) removed | ||
+ | [[snap-store]] (revision 582) removed | ||
+ | [[snapd-desktop-integration]] (revision 10) removed | ||
+ | error: snap "terraform" has "[[auto-refresh]]" change in progress | ||
+ | [[yq]] (revision 2243) removed | ||
+ | |||
+ | == Errors == | ||
+ | snap remove | ||
+ | error: the required argument `<snap> (at least 1 argument)` was not provided | ||
+ | |||
+ | == Related commands == | ||
+ | * <code>[[snap list --all]]</code> | ||
+ | * <code>[[snap forget]]</code> | ||
+ | * <code>[[snap install]]</code> | ||
+ | * <code>[[snap set]] system refresh.retain=2</code> | ||
== See also == | == See also == | ||
* {{snap}} | * {{snap}} | ||
+ | |||
+ | |||
+ | [[Category:Linux]] |
Latest revision as of 09:05, 11 October 2023
snap remove SNAP_NAME --revision=5
[1]
Contents
Examples[edit]
snap remove SNAP_NAME SNAP_NAME removed
snap list --all | awk '/disabled/{print $1, $3}'
du -hs /var/lib/snapd/snaps/ #!/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 du -hs /var/lib/snapd/snaps/
core20 (revision 1434) removed firefox (revision 3131) removed gnome-3-38-2004 (revision 99) removed gnome-42-2204 (revision 132) removed gtk-common-themes (revision 1519) removed kubeadm (revision 3131) removed kubectl (revision 3062) removed snap-store (revision 582) removed snapd-desktop-integration (revision 10) removed error: snap "terraform" has "auto-refresh" change in progress yq (revision 2243) removed
Errors[edit]
snap remove error: the required argument `<snap> (at least 1 argument)` was not provided
Related commands[edit]
snap list --all
snap forget
snap install
snap set system refresh.retain=2
See also[edit]
Advertising: