Snap: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
==Playground== | ==Playground== | ||
{| | |||
| valign="top" | | |||
<source lang="bash"> | |||
sudo du -sh /var/lib/snapd/cache | |||
sudo snap set system refresh.retain=2 | |||
sudo list --all | |||
</source> | |||
| valign="top" | | |||
<source lang="bash"> | |||
sudo ls -l /var/lib/snapd/cache | sed '1d' \ | |||
| cut --fields=2 --delimiter=' ' \ | |||
| grep 1 | wc --lines | |||
</source> | |||
| valign="top" | | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
| valign="top" | | |||
| valign="top" | | |||
|} | |||
==References== | ==References== |
Revision as of 09:25, 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
|
|
| ||
References
| ||