6.2. snap - Tool to interact with snaps
[root@netkiller test]# yum info snapd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Available Packages
Name : snapd
Arch : x86_64
Version : 2.37.4
Release : 2.el7
Size : 14 M
Repo : epel/x86_64
Summary : A transactional software package manager
URL : https://github.com/snapcore/snapd
License : GPLv3
Description : Snappy is a modern, cross-distribution, transactional package manager
: designed for working with self-contained, immutable packages.
[root@netkiller ~]# yum install -y snapd
[root@netkiller ~]# systemctl enable --now snapd.socket
Created symlink from /etc/systemd/system/sockets.target.wants/snapd.socket to /usr/lib/systemd/system/snapd.socket.
[root@netkiller ~]# systemctl start snapd
[root@netkiller ~]# snap install hello-world
2019-03-09T11:44:14+08:00 INFO Waiting for restart...
hello-world 6.3 from Canonical✓ installed
[root@netkiller ~]# snap list
Name Version Rev Tracking Publisher Notes
core 16-2.37.2 6405 stable canonical✓ core
hello-world 6.3 27 stable canonical✓ -
neo@ubuntu:~$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.37.2 6405 stable canonical✓ core
go 1.12 3318 stable mwhudson classic
sudo snap find <text to search>
sudo snap install <snap name>
更新snap包,如果你後面不加包的名字的話那就是更新所有的snap包
sudo snap refresh <snap name>
sudo snap revert <snap name>
刪除一個snap包
sudo snap remove <snap name>
$ snap changes
neo@ubuntu:~$ snap changes
ID Status Spawn Ready Summary
2 Done today at 11:11 CST today at 12:15 CST Install "go" snap
3 Done today at 11:11 CST today at 11:11 CST Initialize device