Created
June 10, 2022 16:37
-
-
Save digitalsparky/d5c541fd8034ddc0122813160749874d to your computer and use it in GitHub Desktop.
Disable Snapd via CLI
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 | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
systemctl disable snapd.service | |
systemctl disable snapd.socket | |
systemctl disable snapd.seeded | |
systemctl disable snapd.snap-repair.timer | |
systemctl stop snapd.service | |
systemctl stop snapd.socket | |
systemctl stop snapd.seeded | |
systemctl stop snapd.snap-repair.timer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment