Monday, August 12, 2019

package management - Is it possible to install the .snap application in an offline computer?


In DEB package, it is not possible to install an application in offline (in a computer which does not have any internet access). Because of the dependencies. In case of .snap, according to the OMG!Ubuntu, Snap packages can contain both application binary and any dependencies required for it to run.


Does it mean that, any .snap application can be installed in an offline pc (like the .dmg in MacOSX)? As there is no need to fetch any dependencies from the source.



First of all, you can indeed install debs offline:


$ sudo dpkg -i 

However, you're right in that it doesn't take into account the deb's dependencies-- you actually need to have the deb and all its dependencies available offline in order to successfully install it:


$ sudo dpkg -i    ...

So yes, installing a snap offline is very easy, and all you need to have is that single snap (since as you know, it includes its dependencies):


$ sudo snap install path/to/snap

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...