Snap tutorial

ref: https://snapcraft.io/docs/getting-started

0. install snapd

$ apt update
$ apt install snapd
$ systemctl enable --now snapd apparmor
$ systemctl start snapd

1. snap version

2. snap list       or               $ snap list --all app_name

bonh@kali:~$ snap version
snap    2.44.1-2
snapd   2.44.1-2
series  16
kali    2020.2
kernel  5.4.0-kali2-amd64
bonh@kali:~$ snap list
Name               Version                     Rev   Tracking       Publisher   Notes
core               16-2.44.1                   8935  latest/stable  canonical✓  core
core18             20200311                    1705  latest/stable  canonical✓  base
gnome-3-28-1804    3.28.0-16-g27c9498.27c9498  116   latest/stable  canonical✓  -
gtk-common-themes  0.1-30-gd41a42a             1502  latest/stable  canonical✓  -
snapd              2.44.1                      6953  latest/stable  canonical✓  snapd
teams-for-linux    1.0.0                       79    latest/stable  al


3. Searching for application

snap find "teams"|grep teams


4. Getting application information

$ snap info vlc


5. Installing a snap
Installing a snap is straightforward:

$ sudo snap install vlc


6. Upgrade an installed snap
Snaps are updated automatically. However, to manually check for updates, use the following command:

$ sudo snap refresh vlc

or

$ sudo snap refresh


7. Enabling and disabling snaps
If a snaps is temporarily undesired, it can be disabled and later enabled again. This avoids having to remove and reinstall them in the system:

$ sudo snap disable vlc
vlc disabled

$ sudo snap enable vlc
vlc enabled


8. Removing a snap
To remove a snap from your system, along with its internal user, system and configuration data, use the remove command:

$ sudo snap remove vlc
vlc removed



Running snap commands

A snap’s installed applications can be found under /snap/bin, and subsequently, often added to $PATH. This makes commands directly accessible from the command line.
For example, the command installed via the VLC snap is simply vlc:
$ which vlc
/snap/bin/vlc
If executing a command directly doesn’t work, try prefixing it with the /snap/bin path:
$ /snap/bin/vlc










Comments

Popular posts from this blog

Fixing the DeepSpeed Import Error While Fine-Tuning the Qwen Model

Amazon Linux 2023 - User data configuration for launch templates to connect to the EKS cluster

How to create ISM policy and rotate logs in opensearch