Package management system Snappy

What is the package management system Snappy?

Snappy is a package management system designed and developed by Canonical Ltd.
The Snappy package is called 'Snap' and the tool to use Snap is called 'Snapd"
Snap works with a variety of Linux distributions and is independent of the distribution's upstream software deployment.

Distribution with snap preinstalled

KDE Neon
Solus 3 and above
Ubuntu 20.10 and Ubuntu 21.04
Ubuntu 22.04 LTS (Jammy Jellyfish)
Ubuntu 20.04 LTS (Focal Fossa)
Ubuntu 18.04 LTS (Bionic Beaver)
Most Ubuntu flavours
Zorin OS

Distributions where snap is not preinstalled but available

Arch Linux
Kali Linux
Linux Mint
Red Hat Enterprise Linux (RHEL)

elementary OS
Parrot Security OS
Raspberry Pi OS
Rocky Linux

Reference: Official Documents

Install Snapd on Linux

1.How to install snapd package for each Linux distribution

......Debian and Ubuntu......

......Fedora Linux......

......CentOS & RHEL......


2.After installing snapd, enable the systemd unit that manages the main snap communication socket

3.Start-up Confirmation

4.Create a symbolic link between /var/lib/snapd/snap and /snap

5.Check snapd and snap command line tool versions

6.Install Package
As an example, we will install MicroK8s, a Kubernetes environment building tool developed by Canonical

Snap defines the isolation level of the environment, and "--classic" is the same as for conventional packages such as apt

7.Check installed packages

8.View Package Information

9.Update Package

When updating on a per-package basis

To update all installed packages

Automatic updates are also performed, by default every 4 hours

For more information, see the official document

10.Service Management

Check currently operating services

Suspension of Service

Service Startup

Enable automatic service startup

To disable auto-start, add "--disable" option to "snap stop".

11.Package enable/disable

Use "snap disable" to disable the package

Use "snap enable" to enable

12.Uninstall the package

To remove completely, add "--purge" option.