Created
May 1, 2021 17:22
-
-
Save mauvehed/b71761b7d7b71036cfe6e186aaf8574c to your computer and use it in GitHub Desktop.
Remove snapd
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
# FROM: https://askubuntu.com/a/1285102/747165 | |
# In Ubuntu 20.04 LTS and Ubuntu 20.10, I removed snapd following this steps: | |
# stop snapd services | |
sudo systemctl stop snapd && sudo systemctl disable snapd | |
# purge snapd | |
sudo apt purge snapd | |
# remove no longer needed folders | |
rm -rf ~/snap | |
sudo rm -rf /snap /var/snap /var/lib/snapd /var/cache/snapd /usr/lib/snapd | |
# Then, to avoid that other applications may reinstall it (chromium-browser is an example of application that restores snapd even if installed via apt) you can create a file no-snap.pref by issuing: | |
sudo vim /etc/apt/preferences.d/no-snap.pref | |
# and then copying the following content in it: | |
``` | |
# To install snapd, specify its version with 'apt install snapd=VERSION' | |
# where VERSION is the version of the snapd package you want to install. | |
Package: snapd | |
Pin: release a=* | |
Pin-Priority: -10 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment