Before everyone rushes to mark this as a duplicate, I have indeed read the other threads here and here, googled this, and visited the snappy homepage here searching to clear my confusion, and I couldn't. I ask here because I still remain confused. I understand that it is some sort of a minimal working ubuntu, and the spirit of this question is not what is "in it", rather what it is and how it works.
What is the snappy approach to applications? The homepage describes some of it's merits, but as a user, how will I get the apps? Do I still
sudo apt-get install XXXX
? Or something else?Will regular ubuntu applications work if I install snappy (the same thing that works on my normal ubuntu install using apt-get or by downloading a deb package), or does someone need to do something special to make an app work in snappy?
Snappy Core is available for Raspberry Pi, for instance, which is a different (mobile) processor, if I install snappy on that, will regular desktop apps still work on Pi? Is that the point of snappy?
If the standard approach does not work, how do I get applications, where do I search for what applications are available for snappy, and how do I install them.
Thank you. My questions are formulated to the best of my understanding of how applications work and are installed in Ubuntu, but please edit them to make more sensible if you get what I mean to ask.
apt-get
and other utilities for working with traditional.deb
packages do not work to install and upgrade applications on a Snappy Ubuntu Core system. Instead you use thesnappy
utility. See the Snappy Tour for details.To summarize a couple examples from the Snappy Tour, to install the Docker application you would run:
And to install updates, you run
sudo snappy update-versions
(which corresponds tosudo apt-get update
on a normal Ubuntu system),snappy versions
to see what's newly available, andsudo snappy update ...
to specify packages for updating (put their names in place of...
).Because Snappy Ubuntu Core doesn't use
.deb
packages, Ubuntu packages created for regular Ubuntu systems will not work--the relationship between regular Ubuntu systems and Snappy Ubuntu Core when it comes to package files is, in effect, the same as the relationship between any two distributions that use totally different package managers. (For example: Ubuntu and Fedora.)Like in just about any OS, you could manually install programs on Snappy Ubuntu Core provided you have or can obtain all the libraries (and any other dependencies) they need. However, just as the best way to install most software on regular Ubuntu systems is with a
.deb
package, the best way to install software on Snappy Ubuntu Core is with specially built snappy packages. Only a handful of these exist so far.To search for Snappy Ubuntu Core apps from within a Snappy Ubuntu Core system, use:
This finds Snappy packages with
search-term
in their names. (You'd replace that with whatever you're looking for, of course.)As for Raspberry Pi, those have ARM processors, which you're right are not the same as the usual 32-bit and 64-bit Intel and AMD processors most of us use on our traditional PCs. However, Raspberry Pi support does not appear to be the main point of Snappy Ubuntu Core. Instead, as you may be aware, the general aim of Snappy is for better speed, stability, and security, in circumstances where a minimal Ubuntu Core system is sufficient and appropriate.
Snappy is cloud-oriented ("Snappy Ubuntu Core is the perfect system for large-scale cloud container deployments..."), and explicitly supports many x86 (i.e., not ARM) platforms--see the list of options under "Try the new, snappy Ubuntu yourself!" on the Snappy home page.
Nonetheless, depending on your needs, Snappy Ubuntu Core may be a reasonable way to get a working Ubuntu Core system on a Raspberry Pi. Depending on which Raspberry Pi board you have, it may or may not support a fuller, more traditional installation of Ubuntu. Note, though, that there are other options that may be more Ubuntu-like in the ways that matter to most users of traditional Ubuntu systems:
apt-get
. In factapt-get
originated in Debian. (Ubuntu is a derivative of Debian.)apt-get
). The Debian project's page about Debian on Raspberry Pi even says, "Generally, your best bet is to use Raspbian".See also this list of operating systems for Raspberry Pi.
Snappy Ubuntu Core is like a Lego system, each snap (app) is a block not affected by other snaps. So security is simpler and higher, dependencies are no longer an issue and the lifecycle of snaps are much easier. With a single command you can exchange versions, eliminate and upgrade any snapp and even the core (OS).
This is the default on 16.04 but Mark said that you'll use .apt and .deb also.