view ci/remove_snap.sh @ 34246:752da4c70ab4

CI: get rid of snap and speed up CI (#13938) Commit: https://github.com/vim/vim/commit/0a3d36968737ad70bf234b6cc438230911b14f9c Author: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Wed Jan 31 20:04:22 2024 +0100 CI: get rid of snap and speed up CI (https://github.com/vim/vim/issues/13938) Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Wed, 31 Jan 2024 20:15:07 +0100
parents
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