Skip to content

Instantly share code, notes, and snippets.

@ForumPlayer
Created September 15, 2021 19:47
Show Gist options
  • Save ForumPlayer/c960ec9c8640c562a5215bab1afa00c7 to your computer and use it in GitHub Desktop.
Save ForumPlayer/c960ec9c8640c562a5215bab1afa00c7 to your computer and use it in GitHub Desktop.
#!/bin/bash
systemctl stop snapd.socket
systemctl stop snapd.service
systemctl disable snapd.socket
systemctl disable snapd.service
apt purge snapd
rm -rf ~/snap /snap /var/snap /var/lib/snapd /var/cache/snapd /usr/lib/snapd
echo -ne "# To install snapd, specify its version with 'apt install snapd=VERSION'\n# where VERSION is the version of the snapd package you want to install.\nPackage: snapd\nPin: release a=*\nPin-Priority: -10"> /etc/apt/preferences.d/no-snap.pref
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment