3 ms·
## app-conf/apt/nosnap.pref # To prevent repository packages from triggering the installation of snap, # this file forbids snapd from being installed b
by mistrial9 3y ago
## app-conf/apt/nosnap.pref
# 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
### Remove snapd applications and service
snap remove --purge firefox
snap remove --purge gnome-3-38-2004
snap remove --purge gtk-common-themes
snap remove --purge bare
snap remove --purge core20
snap remove --purge snapd
apt-get remove --yes snapd
# This will prevent snapd from any repository
tested on Ubuntu jammy
- lnxg33k1 3y agoThe hero we need, thank you!
- crabbone 3y agoWriting from memory, so might be a bunch of b/s... still. I'm afraid this isn't enough and something like apt-get update <something> can trigger full reinstall of Snap and a bunch of other junk installed with it.
- throw555chip 3y agoI've used the pin apt to prevent snap reinstalling approach on multiple machines for years with no recurrence of snap.