You're like me don't like Snap for whatever reason(s) and want to remove it from your system? Look no further, this is how it is done.
With two commands you'll be Snap-free. But beware it will uninstall any snap installed application also.
The first command clear the snap cache.
The second command remove snap and snap applications.
Snap and flatpak also have shown some pretty serious security issues.
But for me, personally, the reason I abhor Snap is because of what it does and what it represents in FOSS.
Snap is a Broken Promise by Canonical that seeks to assert more control over the user and the users system. Not only does Snap sandbox its applications, locking everything out and making them difficult to troubleshoot, it also replaces other methods of installation, which is something Canonical Promised it would not do at the time of the release of Snap. Even now, if you use the Software Center, it will sneak Snaps in, offering no alternative.
It is due to this that the Zorin Group included the ability to check the source in their Zorin OS Software App.
Flatpak is about "half-snap" so I show it no mercy, either.
It disappears after these two commands, there are no snap or snapd processes any more. But after a few days, always less than a week, it comes back and it secretly reinstalls firefox. I notice it because then my normal firefox doesn´t work anymore.
(I indeed had once firefox first installed with snap, but that didn´t work well, so I removed it)
Maybe we should widen @Storm's Commands from the initial Comment a bit:
sudo systemctl stop snapd snapd.socket
sudo systemctl disable snapd snapd.socket
sudo apt purge snapd gnome-software-plugin-snap
sudo apt autoremove (But check the Remove List before delete the Packages first)
sudo nano /etc/apt/preferences.d/nosnap.conf and put in:
# To prevent repository packages from triggering the installation of snap,
# this file forbids snapd from being installed by APT.
Package: snapd
Pin: release a=*
Pin-Priority: -10
Hello,
Just a question for the technical experts:
if you don't like Snap, why not just leave it installed on your PC and simply not use it?
Is there a technical reason to get rid of it, or is it just a matter of principle?
Sure, You can let it installed and simply not use it. Uninstall and blocking it brings the Point, that it will not be installed anymore. Also uninstall removes the Service which makes that the Boot Process can be a bit faster. Also, You remove Stuff that You don't use in the first Place saves Disc Space. When there might be a Security Issue, You aren't affected by that.