snap簡介
Package any app for every Linux desktop, server, cloud or device, and deliver updates directly.
與deb包不同的是,它將依賴包打包到應(yīng)用中了,也許會解決之前l(fā)inux下各種依賴導(dǎo)致的問題,不過相應(yīng)的,軟件體積肯定大了,不過還是值得的,這給桌面系統(tǒng)普通用戶使用帶來了極大的便利,像win和mac中傻瓜式的安裝方式,總算走出了這一步,并且官方提供應(yīng)用商店也極大地便利了用戶= =
snap用戶使用
$ snap help
安裝、卸載官方商店的應(yīng)用:
$ sudo snap install <軟件名>
$ sudo snap remove <軟件名>
安裝本地應(yīng)用
$ sudo snap install --dangerous <文件名(.snap結(jié)尾)>
官方應(yīng)用商店:https://uappexplorer.com/
snap開發(fā)者使用
建立一個snap應(yīng)用,參考官方文檔
創(chuàng)建一個最簡單的應(yīng)用:
$ mkdir hello_test
$ cd hello_test
$ snapcraft init
$ vim snapcraft.yaml
name: hello-test-snap
version: "0.1"
summary: test snap
description: just a test snap of neucrack
confinement: strict
apps:
hello-test-snap:
command: echo hello!!!!!
parts:
hello:
plugin: nil
注意:不用使用tab,只能使用空格
$ snapcraft

snapcraft
$ sudo snap install --dangerous hello-test-snap_0.1_amd64.snap
$ snap list
$ hello-test-snap

result
上傳到商店
登錄商店https://myapps.developer.ubuntu.com/
new snap,然后根據(jù)提示填寫信息及上傳snap文件即可