Snap: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
{|
| valign="top" |
  sudo apt update
  sudo apt update
  sudo apt install snapd
  sudo apt install snapd
sudo snap set system refresh.retain=2
| valign="top" |
  sudo snap refresh
  sudo snap refresh
  sudo list --all
  sudo list --all
sudo list
| valign="top" |
sudo du -sh  /var/lib/snapd/cache
sudo du -sh  /var/lib/snapd/snaps
sudo ls -lah /var/lib/snapd/snaps
|}


==Playground==
==Playground==
{|
{|
| valign="top" |
| valign="top" |
<source lang="bash">
<syntaxhighlight lang="bash">
sudo snap set system refresh.retain=2
sudo snap set system refresh.retain=2
sudo du -sh /var/lib/snapd/cache
sudo du -sh /var/lib/snapd/cache
sudo list --all
sudo list --all
</source>
</syntaxhighlight>


| valign="top" |
| valign="top" |
<source lang="bash">
<syntaxhighlight lang="bash">
sudo ls -l /var/lib/snapd/cache | sed '1d' \
sudo ls -l /var/lib/snapd/cache | sed '1d' \
  | cut --fields=2 --delimiter=' ' \
  | cut --fields=2 --delimiter=' ' \
  | grep 1 | wc --lines
  | grep 1 | wc --lines
</source>
</syntaxhighlight>


|-
|-
Line 24: Line 37:
----
----
|-
|-
| valign="top" |
| valign="top" colspan="2" |
<source lang="bash">
<syntaxhighlight 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
</source>
</syntaxhighlight>


| valign="top" |
|-
<source lang="bash">
| colspan="2" |
----
|-
| valign="top" colspan="2" |
<syntaxhighlight 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
</source>
</syntaxhighlight>
 
|-
| colspan="2" |
----
|-
| valign="top" |
systemctl status snapd.service
systemctl start  snapd.service
systemctl stop  snapd.service
 
| valign="top" |
df -PTh /var/lib/snapd


|}
|}
Line 43: Line 74:
{|
{|
| valign="top" |
| valign="top" |
* [https://snapcraft.io/kontena-lens Snapcraft » Kontena Lens]
* [https://snapcraft.io/distrobuilder Snapcraft » Distrobuilder]
* [https://askubuntu.com/questions/1075050/ Snapcraft » Clear Cache]
* [https://askubuntu.com/questions/1075050/ Snapcraft » Clear Cache]
* [https://snapcraft.io/telegram-desktop Snapcraft » Telegram]
* [https://snapcraft.io/postman Snapcraft » Postman]
* [https://snapcraft.io/nvim Snapcraft » Neovim]
* [https://snapcraft.io/code Snapcraft » VSCode]
* [https://snapcraft.io/bottom Snapcraft » Bottom]
* [https://snapcraft.io/lxd Snapcraft » LXD]
* [https://snapcraft.io/install/snapcraft/ubuntu#install Snapcraft]
* [https://snapcraft.io/install/snapcraft/ubuntu#install Snapcraft]


| valign="top" |
| valign="top" |
* [https://snapcraft.io/dotnet-sdk Snapcraft » .NET Core SDK]
* [https://snapcraft.io/dbeaver-ce Snapcraft » DBeaver CE]
* [https://snapcraft.io/powershell Snapcraft » PowerShell]
* [https://snapcraft.io/multipass Snapcraft » Multipass]
* [https://snapcraft.io/zaproxy Snapcraft » ZAProxy]
* [https://snapcraft.io/arduino Snapcraft » Arduino]
* [https://snapcraft.io/drawio Snapcraft » DrawIO]
* [https://snapcraft.io/skype Snapcraft » Skype]
* [https://snapcraft.io/figma-linux Snapcraft » Figma]
* [https://snapcraft.io/zoom-client Snapcraft » Zoom]


| valign="top" |
| valign="top" |
Line 55: Line 104:
|-
|-
| valign="top" |
| valign="top" |
* [https://www.linkedin.com/advice/3/what-some-advantages-disadvantages-using-set-e Shell » Scripts » Benefits of using <code>set</code> <code>-e</code>, <code>-u</code>, and <code>-x</code>]
* [https://www.linkedin.com/advice/3/what-some-advantages-disadvantages-using-set-e Shell » Scripts » Using <code>set</code> <code>-e</code>, <code>-u</code>, and <code>-x</code>]
* [[CocoaPods]]
* [[CocoaPods]]
* [[Homebrew]]
* [[Homebrew]]
* [[Linuxbrew]]


| valign="top" |
| valign="top" |

Latest revision as of 04:23, 20 October 2024

sudo apt update
sudo apt install snapd
sudo snap set system refresh.retain=2
sudo snap refresh
sudo list --all
sudo list
sudo du -sh  /var/lib/snapd/cache
sudo du -sh  /var/lib/snapd/snaps
sudo ls -lah /var/lib/snapd/snaps

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

systemctl status snapd.service
systemctl start  snapd.service
systemctl stop   snapd.service
df -PTh /var/lib/snapd

References