AppImage Extract: Inspect Files on Linux

AppImage Extract: Inspect Files on Linux

Looking for an icon or another bundled resource means checking the files inside an AppImage. For a supported Type 2 image, its runtime can unpack those files into a directory named squashfs-root.

This article shows how to extract an AppImage and find bundled resources in its extracted directory. It explains what to do when the built-in extraction option is unavailable.

TL;DR: Extract an AppImage

For a Type 2 AppImage, run the file with the extraction switch shown below to create a directory named squashfs-root in the current working directory.

cd /path/to/folder
./your.AppImage --appimage-extract
ls squashfs-root

Use the command below when you need files to remain on disk. Do not run an untrusted download on your main system.

What Is AppImage Extraction?

An AppImage distributes an application as one file, with its filesystem arranged as an AppDir. The bundle also contains a small runtime.

The extracted squashfs-root tree contains the publisher’s bundled files.

AppImage Pool browses a catalog rather than unpacking a local file.

Inspecting the AppDir shows what the publisher bundled, but it does not tell you whether the app’s system dependencies are installed.

How to Extract an AppImage Step by Step

Extract from a directory you control, then inspect the output before deciding what to do with it.

Step 1: Open the folder containing the AppImage

In a terminal, change to the directory where the downloaded file lives. Replace the example path and filename with the actual ones. The ./ prefix tells the shell to run a file in the current directory.

cd ~/Downloads
ls -l your.AppImage

Check that the name matches exactly. Spaces and capitalization matter. Quote a filename that contains spaces when you place it in a command.

Step 2: Check whether the runtime supports extraction

This runs the embedded runtime to display its options, not the application’s entry point.

./your.AppImage --appimage-help

Look for the extraction switch in the help text. If it is absent, check the format-specific guidance below.

Step 3: Extract and inspect the directory

Allow enough free disk space for the unpacked copy before extracting.

./your.AppImage --appimage-extract
find squashfs-root -maxdepth 2 -type f -print

Use the file listing to locate metadata or another bundled resource. The directory shows what the publisher included, but it does not verify system dependencies.

Enter a dedicated folder first if an existing squashfs-root directory could conflict with the new extraction.

AppImage Extraction Limits and Fixes

Check both the image type and file permissions before choosing a method.

The command says permission denied

A downloaded file may lack its executable bit. Check its permissions with the command below. If you trust the download and intend to run its runtime, grant execute permission for your user, then retry the help command.

ls -l your.AppImage
chmod u+x your.AppImage

The extraction option is missing

Older Type 1 images use ISO9660, for which the AppImage documentation lists bsdtar as an extraction option. Check the image type before choosing that route.

file your.AppImage

You want to inspect without executing the runtime

The built-in option calls code embedded in the file. For an untrusted download, prefer a disposable, isolated environment or verify its source before you execute it.

For a trusted Type 2 image, the mount switch provides temporary read-only access instead of writing an extracted directory. Official documentation says it prints a mount location and remains active until interrupted.

SituationWhat to checkNext step
Permission deniedExecute permission on the downloaded fileFor a trusted file, add the user execute bit and retry
Extraction switch missingImage type and runtime optionsUse a Type 1-compatible extraction guide
File is untrustedWhether the runtime itself is safe to executeDo not run it on your main system

When you finish inspecting, remove only the extraction directory you created. Keep the original AppImage if you still need it.

Conclusion

For a supported Type 2 file, the extraction command creates squashfs-root in your current directory.

For launching an AppImage rather than examining its files, see our guide to installing and running AppImages on Linux. For a worked app-specific example, read how to install Obsidian on Linux. The AppImage documentation on running and extracting covers the runtime options and format limits.

FAQ

The answers below cover the output location, bundled icons and older image formats.

Where does an AppImage extract its files?

The Type 2 runtime creates a directory named squashfs-root in the current working directory. Change directories first if you want the output somewhere else.

Can I extract an icon from an AppImage?

Yes. Extract a supported Type 2 image, then look through squashfs-root for icon files. Their names and locations depend on the application.

Does the built-in extraction option work with Type 1?

The built-in switch is documented for Type 2 images. Type 1 images need another method, such as a suitable ISO9660 extraction tool described in the AppImage documentation.