一、CentOS 7
1. 安装
(1) 安装epel库
sudo yum install epel-release -y
(2) 安装yum插件copr
sudo yum install yum-plugin-copr -y
(3) 添加仓库
sudo yum copr enable ngompa/snapcore-el7
(4) 安装snapd
sudo yum -y install snapd
2. 配置
(1) 启用snapd socket
sudo systemctl enable --now snapd.socket
(2) 创建软连接
sudo ln -s /var/lib/snapd/snap /snap
二、CentOS 8
1. 安装
(1) 添加epel库
sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf -y upgrade
(2) 安装snapd
sudo dnf -y install snapd
2. 配置
(1) 启用snapd socket
sudo systemctl enable --now snapd.socket
(2) 创建软连接
sudo ln -s /var/lib/snapd/snap /snap
三、验证
1. 验证安装
snap --help
四、参考
https://computingforgeeks.com/install-snapd-snap-applications-centos/
标签:CentOS,sudo,snap,yum,snapd,install,SNAP,安装 From: https://www.cnblogs.com/eagle6688/p/17125126.html