Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

How do I view the contents of a .snap file?

Writer 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/mountpoint

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

1

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

Source:

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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