sudo install snap code example
Example 1: install snap
sudo apt update
sudo apt install snapd
Example 2: install snapd ubuntu
#Ubuntu and Debian
sudo apt update
sudo apt install snapd
#CentOS and RHEL
yum install epel-release
yum install snapd
#Fedora
dnf install snapd