This page looks best with JavaScript enabled

Uninstall Snap in Ubuntu

 ·  β˜• 1 min read

Snap is a packaging format developed by canonical to use in Ubuntu and other Linux distros but there are problems with snaps as they are slow compared to native binaries and consume a lot of disk space and the server side of snapcraft is proprietary, but since it’s their own technology canonical is pushing it too much over other solutions in Ubuntu , so for any of the following reasons if you want to uninstall snaps from your system just follow along.

Uninstall Snaps

  • Run the following command to list all snaps in your system.
1
snap list

snap list

  • Then remove snaps one by one by using the following command
1
sudo snap remove --purge snap-name

snap remove

Uninstall snapd

  • After removing snaps you can completely remove snap by using the following command
1
sudo apt remove --purge snapd

remove snapd

Delete snap cache

  • Run the following commands to remove any snap configuration or cache files.
1
2
3
sudo rm -rf /var/cache/snapd/
rm -fr ~/snap # for home user
sudo rm -fr ~/snap # for root user

remove snap cache

Hold snap package

  • Run the following command to prevent snap from auto installing, for example, while installing the chromium package.
1
sudo apt-mark hold snapd

hold snap

Share on
Support the author with
bitcoin QR Code

Vineel Sai
Vineel Sai
Vineel Sai