Ubuntu software center, Apt, and multiple others ways to install the software in Ubuntu but what is this snap. Looks like it’s the new cool. Let’s find out more about snap.
I want to keep this article short because Wikipedia has discussed at length about snap.
When you develop applications, we want to keep the application in such a way it’s easy to distribute. In Ubuntu, the applications were built in .deb format which means the apps are packaged in the format which is tied to the distro. For instance, we cannot instance .deb in fedora.
With a snap, the software is packaged in such a way the distro dependencies are eliminated. The same snap packages can be installed on different distros by the developer.
Now the developers have more power to distribute the apps easily on all distros which means a few good and bad things.
The good parts are
Easy to distribute and spread your app
Monetization is easier because you have a wider audience and your app is not tied to a cross-section of Linux users.
Bugs could be reduced as platform dependencies are reduced.
The bad parts are
Easy to spread bad apps, malware, miners, etc
The developer needs to keep things up to date. The distro team has no interference or responsibility to check the package. However, a bot will check the snap for malware, etc but I do not think its fool a proof strategy against attacks that could come through snaps
Snaps are distributed from snap stores but apt packages are distributed from official repositories maintained by the distro team
Distro team has no say on what app can go into the snap store and which can be installed on the distro later
Building an app in snap format is less complex compared to other traditional packaging systems. The tool kit involved in developer workflow is different however the archives, package management concepts remain the same.
snaps carry their dependencies making the apps bulkier but apt packages have shared dependencies
snaps are automatically updated but apt packages are manually updated
In the case of both apt and snap, the discretion of the user to choose the developer is required. Some fraud developer can trick the systems
Yes, they are in snap format. For instance, the IDE which I am using (Webstorm) is provided by Jetbrains themselves on snap store website. I am convinced about snap packaging and if I ever launch an app on Ubuntu it would be a snap app. Btw I see some nice shiny apps in the snap store including shareware and trialware.
To know if an app is a snap, do run the command
To see all the snaps
To install a snap
sudo snap install packageName
To uninstall a snap
sudo snap remove packageName
I do not think you need a command to update snaps, the snap packages are auto-updated.
Find out more information like build number of app using
snap info packageName
You can also disable and enable snaps like mobile apps.
Snap is both a command-line interface and an application package format, snaps can be found on snap store