1. 先從snap 包講起
ubuntu core 基本上是諸多snap 包堆積起來的一個系統,正如傳統的ubuntu 是debian 堆積起來的一樣。但不同的是ubuntu core 也是一個snap 包, 甚至 kernel, uboot 也分別是一個snap 包。因此,就讓我們先 瞭解下snap 包 是個甚麼東東吧。
1.1 什麼是snap ?
A
snap
:
is a squashFS filesystem containing your app code and a
snap.yaml
file containing specific metadata. It has a read-only file-system and, once installed, a writable area.is self-contained. It bundles most of the libraries and runtimes it needs and can be updated and reverted without affecting the rest of the system.
is confined from the OS and other apps through security mechanisms, but can exchange content and functions with other snaps according to fine-grained policies controlled by the user and the OS defaults.