From what I've read, an Appimage file is a compressed application along with all of its resources, and when run it is auto-mounted and then executed.
I want to inspect the resources and files inside an Appimage file I've downloaded, without actually running the Appimage.
How can I do this?
Without changing their extension:
As such, an appimage can be mounted or extracted. That is:
To mount them:
To extract them:
There is an answer on superuser on how to extract files from an AppImage.
Looking at my appimages I see that only some of them can be mounted with gnome-disk-image-mounter. Also here.
Changing their extension:
Not all appimages have exactly the same structure, but all are archives. Wikipedia says: "An AppImage of version 1.0 is an ISO 9660 Rock Ridge file (which can be optionally zisofs compressed) containing a minimal AppDir and a tiny runtime. (Version 2 may use other file system image formats like SquashFS)".
So, it can be extracted. In this way you can examine the files.
Simply changing the extension from
AppImage
to an archive extension that my file-roller archive manager can read (I tested withzip
,7z
, etc) and double-clicking the file reveals the contents in file-roller:They can also be extracted, of course. The "extract" file manager context menu action works too in order to extract the archive. (As said in comment, the
unzip
command reports an error with a file renamed with azip
extension, so renaming tozip
is not the proper choice in itself, but it works with archive managers likefile-roller
.)According to AppImage documentation the
--appimage-mount
option allows you to mount and inspect the contents.For example:
The application's help can usually be shown with
./whatever.AppImage --help
like any other application, but to see the AppImage specific options, you can run:Here is the relevant portion of the output:
You don't have to create a mountpoint for it or delete the directory afterwards; the AppImage will take care of all of that.