view ci/remove_snap.sh @ 35876:a2fb6fe75882

Added tag v9.1.0649 for changeset d4695391d734291088af8fb82ad95f0fd1fd0380
author Christian Brabandt <cb@256bit.org>
date Thu, 01 Aug 2024 23:00:04 +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