view ci/remove_snap.sh @ 34766:3b404223f7e8

runtime(netrw): filetype not detected when editing remote files Commit: https://github.com/vim/vim/commit/08d2401fbc6de2606aca69add401e2ffca772aa2 Author: Christian Brabandt <cb@256bit.org> Date: Wed Apr 3 22:44:27 2024 +0200 runtime(netrw): filetype not detected when editing remote files fixes: https://github.com/vim/vim/issues/14400 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Wed, 03 Apr 2024 23:00:03 +0200
parents 752da4c70ab4
children
line wrap: on
line source

#!/usr/bin/env sh
pushd /etc/apt/preferences.d/
cat > nosnap.pref <<EOF
# 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
EOF
popd
snap remove --purge $(snap list | awk '!/^Name|^core/ {print $1}')
apt-get purge -y snapd