3

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?

3

You can mount a snap-file as squashfs-filesystem:

sudo mount -t squashfs -o ro /path/to/my.snap /path/to/mountpoint

You can use the file-manager to browse to /path/to/mountpoint and view the contents of the snap-file.

| improve this answer | |
  • can you rework your answer for a snap file named my.snap ? Instead of getting from the store. I am just trying to check what's inside a snap I am building myself. – eri0o Aug 2 '19 at 3:12
0

Snaps are gpg signed squashfs files, you can use unsquashfs from the squashfs-tools package to unpack them

Source: https://forum.snapcraft.io/t/archive-manager-can-open-snap-files-what-kind-of-archives-are-they/1358

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.