Snap

Useful commands

snap list

sudo snap remove <package name> 

snap connections nextcloud

snap info nextcloud

Removing old revisions

When running lsblk, you will see loops that are used by snap. Some of them are not actually used. To remove them, paste in the terminal:

snap list --all | awk '/disabled/{print $1, $3}' | while read name rev; do
  sudo snap remove --revision=$rev $name
done

This script snippet will eliminate the duplicate loop devices.

0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9