Linux for Developers
/Intermediate
Snap
Definition
A modern software packaging and deployment system developed by Canonical. Unlike APT, Snap packages are completely self-contained, including all their own dependencies, and run in an isolated sandbox.
Explain Like I'm New
Like a Docker container for desktop apps. Instead of an app relying on the messy shared files of your Operating System, it brings everything it needs bundled inside its own secure box.
Real World Example
You want to install Spotify. You type `sudo snap install spotify`. It downloads a massive file containing Spotify AND its specific version of Python and graphics libraries, ensuring it won't break your computer's files.
Common Use Cases
- •Cross-distribution software installation
- •Desktop applications
Interview Questions
basic
- Do Snap packages generally take up more or less hard drive space than APT packages?
intermediate
- Why is Snap controversial among hardcore Linux users?