Snap Package Manager on Ubuntu

Last Updated : 8 Jun, 2026

Snap is a modern package management and software deployment system developed by Canonical. It allows users to install, update and manage applications through self-contained packages known as snaps. These packages work across multiple Linux distributions, making software deployment simpler and more consistent. Key features of Snap packages include:

  • Cross-distribution compatibility.
  • Bundled dependencies.
  • Automatic updates.
  • Rollback support.
  • Enhanced security through sandboxing.
  • Easy installation and removal.

Step-By-Step Commands and Guide to Install Snap

Most modern Ubuntu releases include Snap by default. If Snap is not installed, follow these steps.

Step 1: Update Package Information

sudo apt update

Output:

VirtualBox_windowsgfg_06_06_2026_10_30_33
Update

Step 2: Install Snapd

sudo apt install snapd

Output:

VirtualBox_GeeksforGeeks_06_06_2026_15_32_14
Install Snapd

Step 3: Verify the Installation

Install the sample hello-world snap.

sudo snap install hello-world

Output:

VirtualBox_GeeksforGeeks_06_06_2026_16_12_36
Verify Installation

Step 4: Run the Test Application

If the command executes successfully, Snap has been installed correctly.

/snap/bin/hello-world

Output:

VirtualBox_GeeksforGeeks_06_06_2026_16_16_19
Test Application.

Common Snap Commands

The following are the snap command options with their examples.

1. Search for an Application

snap find app_name

Example: snap find vlc

Output:

VirtualBox_GeeksforGeeks_06_06_2026_16_30_27

2. View Application Information

snap info app_name

Example: snap info vlc

VirtualBox_GeeksforGeeks_06_06_2026_16_35_34
Info

3. List Installed Snaps

snap list

Output:

VirtualBox_GeeksforGeeks_06_06_2026_16_38_04
List of Installed Apps

Snap vs. Apt

The following are the differences between snap and apt:

FeatureSnapAPT
CompatibilityWorks across multiple Linux distributionsPrimarily for Debian-based distributions such as Ubuntu
Dependency ManagementBundles required dependencies within the packageUses system-wide shared dependencies
UpdatesAutomatic updates with rollback supportUpdates managed through the package manager
SecurityApplications run in isolated sandboxesTraditional package management with less isolation
Package SizeUsually larger due to bundled dependenciesGenerally smaller because dependencies are shared
Startup SpeedCan be slightly slower for some applicationsTypically faster startup times
Comment

Explore