Skip to content

Instantly share code, notes, and snippets.

@digitalsparky
Created June 10, 2022 16:37
Show Gist options
  • Save digitalsparky/d5c541fd8034ddc0122813160749874d to your computer and use it in GitHub Desktop.
Save digitalsparky/d5c541fd8034ddc0122813160749874d to your computer and use it in GitHub Desktop.
Disable Snapd via CLI
#!/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