= Linux/Remove Ubuntu Snap =

== What is Snap ? ==
 * Snap is new Ubuntu packaging, in place of apt
 * There is also flatpack and alternative to snap.
 
== Why remove it ? ==
 1. 2021: It is slower than APT packages, e.g. Firefox noticeably slower startup
 2. Creates a bunch of /dev/loopX devices for each snap package

== How ? ==
 * Best way install Debian.
 * From: https://askubuntu.com/questions/1369159/how-to-remove-snap-completely-without-losing-firefox 
{{{
sudo apt-get autopurge snapd

cat <<EOF | sudo tee /etc/apt/preferences.d/nosnap.pref
# To prevent repository packages from triggering the installation of Snap,
# this file forbids snapd from being installed by APT.
# For more information: https://linuxmint-user-guide.readthedocs.io/en/latest/snap.html

Package: snapd
Pin: release a=*
Pin-Priority: -10
EOF

}}}