安装
1、On Arch Linux, snap can be installed from the Arch User Repository (AUR). The manual build process is the Arch-supported install method for AUR packages, and you’ll need the prerequisites installed before you can install any AUR package. You can then install snap with the following
可以使用使用AUR的包进行安装,也可以进行编译安装
编译命令:
git clone https://aur.archlinux.org/snapd.git
cd snapd
makepkg -si
2、Once installed, the systemd unit that manages the main snap communication socket needs to be enabled:
开启服务
sudo systemctl enable --now snapd.socket
3、To enable classic snap support, enter the following to create a symbolic link between /var/lib/snapd/snap and /snap
创建软链接
sudo ln -s /var/lib/snapd/snap /snap
4、将目录加入环境变量
echo "export PATH=\$PATH:\/snap/bin/" | sudo tee -a /etc/profile
5、重新运行脚本
source /etc/profile
使用
请参考snap --help
参考
https://snapcraft.io/install/p3x-onenote/arch
https://ywnz.com/linuxjc/4635.html