view ci/remove_snap.sh @ 34555:1c10a9edf78b

Added tag v9.1.0178 for changeset 49521803023745470140e866be71213ea3b72161
author Christian Brabandt <cb@256bit.org>
date Wed, 13 Mar 2024 21:15:04 +0100
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