Snap packages isolate applications and their dependencies, sidestepping the compatibility headaches that often come with traditional Linux package managers. By bundling everything an app needs to run, Snaps prevent version conflicts and system instability, making them a practical choice for both desktop and server environments. Optimizing Snap management not only minimizes downtime but also keeps your system secure and up to date with minimal manual intervention.
Install and Set Up Snapd
snap version
If the output displays version information, you’re ready to use Snap. If not, install Snapd on Ubuntu with:
sudo apt update
sudo apt install snapd
Older Ubuntu versions may require a symbolic link for the Snap command:
sudo ln -s /var/lib/snapd/snap /usr/bin/snap
Join readers who trust AllThings.How
Add us as a preferred source on Google so our practical guides show up first next time you search.
Add to Google Preferences →Install Snap Packages
Using the Terminal
snap find [search_term]
Replace [search_term] with a keyword or application name. This command lists matching packages with summaries and publishers, helping you identify trusted software.
sudo snap install [package_name]
For packages requiring broader system access, add the --classic flag:
sudo snap install [package_name] --classic
This is common for development tools and IDEs.
Using the Snap Store GUI
sudo snap install snap-store
snap-store
Update Snap Packages
Using the Terminal
sudo snap refresh
sudo snap refresh [package_name]
sudo snap refresh --list
Using the Snap Store GUI
Remove or Disable Snap Packages
Remove a Snap via Terminal
sudo snap remove [package_name]
To permanently delete all user data and configuration, add the --purge flag:
sudo snap remove [package_name] --purge
Note: On Ubuntu 24.04 and newer, sudo snap remove [package_name] fully removes the app.
Disable or Enable a Snap
sudo snap disable [package_name]
This frees up system resources while keeping the app installed for future use.
sudo snap enable [package_name]
List and Inspect Installed Snaps
snap list
This displays package names, versions, publishers, and confinement modes.
snap info [package_name]
This reveals version history, available channels, publisher, and confinement details.
Manage Snap Services
Some Snaps run background services essential for their operation. Managing these services helps control resource usage and troubleshoot issues.
snap services
To view services for a specific Snap:
snap services [package_name]
sudo snap start [service_name]
sudo snap stop [service_name]
sudo snap restart [service_name]
Offline Snap Installation
For systems without internet access, download Snaps and their assertion files on a connected machine.
snap download [package_name]
Transfer both .snap and .assert files to the offline system.
sudo snap ack [package_name].assert
sudo snap install [package_name].snap
Modify Snap Configuration
Some Snaps support custom configuration for advanced use cases.
snap get [package_name]
sudo snap set [package_name] [key]=[value]
For example, to set a refresh timer for automatic updates:
sudo snap set core refresh.timer=00:00-04:00
sudo snap unset [package_name] [key]
Switch Snap Channels and Roll Back Updates
Snaps offer multiple release channels—stable, candidate, beta, and edge—allowing you to choose between stability and cutting-edge features.
sudo snap refresh [package_name] --channel=[channel]
For example, to move to the beta channel:
sudo snap refresh [package_name] --channel=beta
sudo snap revert [package_name]
Understand Snap Confinement Levels
- Strict: The default. Snap runs in full isolation, accessing only permitted system resources. Ideal for most desktop and server apps.
- Classic: Grants the Snap access to the entire system, similar to traditional packages. Use only when required by the application (e.g., development tools).
- Devmode: For development and debugging. Not for production or general use.
Check a Snap’s confinement with:
snap info [package_name]
Mastering Snap package management in Ubuntu cuts down on software conflicts, automates updates, and keeps your environment consistent across systems. Regularly review installed Snaps and update or remove what you no longer need to keep your system running smoothly.






