Created
September 15, 2021 19:47
-
-
Save ForumPlayer/c960ec9c8640c562a5215bab1afa00c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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