Snap is a package format that was mainly developed by Canonical and can be installed & used without conflicts alongside DEB packages from “normal” package management. Snap is also available for many other Linux distributions. The advantage of snaps is that current versions of application software can be installed, even if the Linux distribution – like Ubuntu and its official derivatives – is a “fixed release distribution”, ie there are usually no version changes for packages from the official package sources.
Actually, snaps were primarily intended for use in the server or cloud environment and also for the Internet of Things. However, later it found its way into the desktop versions of Ubuntu as well. Programs with graphical user interfaces, applications for the command line, environments for programming languages, etc. can also be installed via snaps.
However, on one hand, where for other Linux systems, you have to install Snapd manually, on Ubuntu systems, it comes by default out of the box. And in the case due to some reason you want to remove Snapd from Ubuntu servers or Desktops, then here is the article.
Check Snap Service
First, let’s check whether the service of snapd is running on our Ubuntu Server / desktop system or not. The commands will work on Ubuntu 18.04/21.04 as well. For that run-
sudo systemctl status snapd
Stop Snapd Service
Now, let’s stop its service properly using the command line, in case there is some active application running from Snap.
sudo systemctl stop snapd
Command to Remove
Finally, here is the command to delete snapd from the Ubuntu 20.04 Server or Desktop including other previous versions.
sudo apt remove snapd
Those who want to get SNAP back on their system can simply use the command-
sudo apt install snapd