Blame

c01f96 theophile 2026-04-21 12:09:08
initial page
1
# Snap
2
3
## Useful commands
4
5
```bash
6
snap list
7
8
sudo snap remove <package name>
9
10
snap connections nextcloud
11
12
snap info nextcloud
13
14
15
```
16
17
## Removing old revisions
18
19
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:
20
21
```bash
22
snap list --all | awk '/disabled/{print $1, $3}' | while read name rev; do
23
sudo snap remove --revision=$rev $name
24
done
25
```
26
27
This script snippet will eliminate the duplicate loop devices.