Snap: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 19: Line 19:
  | grep 1 | wc --lines
  | grep 1 | wc --lines
</source>
</source>
| valign="top" |


|-
|-
| colspan="3" |
| colspan="2" |
----
----
|-
|-
| valign="top" |
| valign="top" |
<source lang="bash">
export LANG=en_US.UTF-8;\
snap list --all | awk '/disabled/{print $1, $3}' |\
while read NAME REVISION;do echo "${NAME} » ${REVISION}";done
</source>


| valign="top" |
| valign="top" |
 
<source lang="bash">
| valign="top" |
export LANG=en_US.UTF-8;\
snap list --all | awk '/disabled/{print $1, $3}' |\
while read NAME REVISION;do sudo snap remove "${NAME}" --revision="${REVISION}";done
</source>


|}
|}

Revision as of 09:49, 17 January 2024

sudo apt update
sudo apt install snapd
sudo snap refresh
sudo list --all

Playground

sudo du -sh /var/lib/snapd/cache
sudo snap set system refresh.retain=2
sudo list --all
sudo ls -l /var/lib/snapd/cache | sed '1d' \
 | cut --fields=2 --delimiter=' ' \
 | grep 1 | wc --lines

export LANG=en_US.UTF-8;\
snap list --all | awk '/disabled/{print $1, $3}' |\
while read NAME REVISION;do echo "${NAME} » ${REVISION}";done
export LANG=en_US.UTF-8;\
snap list --all | awk '/disabled/{print $1, $3}' |\
while read NAME REVISION;do sudo snap remove "${NAME}" --revision="${REVISION}";done

References