Code: Select all
$ sudo cat <<EOF | sudo tee /etc/apt/preferences.d/nosnap.pref
Package: snapd
Pin: release a=*
Pin-Priority: -10
EOF
Code: Select all
$ sudo cat <<EOF | sudo tee /etc/apt/preferences.d/nosnap.pref
Package: snapd
Pin: release a=*
Pin-Priority: -10
EOF
that will prevent snapd from being installed. which is necessary for snaps to function, but will not prevent snapd from updating snaps.rastus wrote: Fri Dec 15, 2023 4:25 pm I had to install snap because it's the only way to use NordPass. I would like to know if the following commands will prevent other snap files from being installed, but without preventing NordPass from doing its thing. This code comes from https://www.baeldung.com/linux/snap-remove-disable
I recently learned that having snap is not a good thing. But I need NordPass. Thanks. (Because NordPass requires systemd, that's where this is happening.)Code: Select all
$ sudo cat <<EOF | sudo tee /etc/apt/preferences.d/nosnap.pref Package: snapd Pin: release a=* Pin-Priority: -10 EOF