Snap: Difference between revisions
Jump to navigation
Jump to search
Line 37: | Line 37: | ||
<source lang="bash"> | <source lang="bash"> | ||
export LANG=en_US.UTF-8;\ | export LANG=en_US.UTF-8;\ | ||
sudo snap set system refresh.retain=2;\ | |||
snap list --all | awk '/disabled/{print $1, $3}' |\ | snap list --all | awk '/disabled/{print $1, $3}' |\ | ||
while read NAME REVISION;do echo "${NAME} » ${REVISION}";done | while read NAME REVISION;do echo "${NAME} » ${REVISION}";done | ||
Line 48: | Line 49: | ||
<source lang="bash"> | <source lang="bash"> | ||
export LANG=en_US.UTF-8;\ | export LANG=en_US.UTF-8;\ | ||
sudo snap set system refresh.retain=2;\ | |||
snap list --all | awk '/disabled/{print $1, $3}' |\ | snap list --all | awk '/disabled/{print $1, $3}' |\ | ||
while read NAME REVISION;do sudo snap remove "${NAME}" --revision="${REVISION}";done | while read NAME REVISION;do sudo snap remove "${NAME}" --revision="${REVISION}";done |
Revision as of 10:02, 17 January 2024
sudo apt update sudo apt install snapd sudo snap set system refresh.retain=2 |
sudo snap refresh sudo list --all sudo list |
Playground
sudo snap set system refresh.retain=2
sudo du -sh /var/lib/snapd/cache
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;\
sudo snap set system refresh.retain=2;\
snap list --all | awk '/disabled/{print $1, $3}' |\
while read NAME REVISION;do echo "${NAME} » ${REVISION}";done
| |
| |
export LANG=en_US.UTF-8;\
sudo snap set system refresh.retain=2;\
snap list --all | awk '/disabled/{print $1, $3}' |\
while read NAME REVISION;do sudo snap remove "${NAME}" --revision="${REVISION}";done
|
References
| ||