How do I view the contents of a .snap file?
Matthew Harrington
I need to see what is exactly packed inside of a .snap file, like we can inspect .apk files, for debugging purposes. Is there any way to extract it to files and folders or any .snap inspector similar to the .apk one on Android Studio?
2 Answers
You can mount a snap-file as squashfs-filesystem:
sudo mount -t squashfs -o ro /path/to/my.snap /path/to/mountpointYou can use the file-manager to browse to /path/to/mountpoint and view the contents of the snap-file.
Snaps are gpg signed squashfs files, you can use unsquashfs from the squashfs-tools package to unpack them
Source: