Completely confused with this new feature snap. I know this might be detailed question-answer but I need to know some info regarding it.
I have read that new application format, snap which can be installed by default in the latest long-term support release alongside traditional deb packages. So, Does it mean are there packages with .snap
extension like .deb
? Then, How to install?
The user can use newer versions of apps on older versions of Ubuntu without forsaking the stability of your entire system. Is this the only difference between deb and snap? Does it only exist to LTS version or for non-LTS too?
With this, it is also said that Creating snaps is simplified for developers with the introduction of a new tool called “snapcraft” to easily build and package applications from source and existing deb packages. Is it useful to desktop user or only for developers ?
snap packages are installed through the snap command. More information is here and here.
In effect, a .deb package includes an executable plus the information needed to install it into the system: where it goes, what it depends upon, etc. Compare this with a snap package, which includes the executable and any necessary dependencies - think of it like static linking of libraries versus dynamically calling in what's installed elsewhere on the system.
The idea is that you could have a stable version A library on the OS, but a new application might demand version B. With a .deb, you'd need to upgrade A, and that might in turn impact some other packages; with snap, the application would come bundled with version B for its sole use, so the system-wide version A remains untouched.