Introduction
An AppImage is a Linux application packed into one
file, with the libraries it needs, so that it runs on most distributions without being
installed. The user downloads it, marks it as executable and runs it. Nothing is
copied into the system, and deleting the file removes the application. The extension
is usually written .AppImage.
Structure
An AppImage is two things joined together. It starts with a small
ELF program, the runtime, followed by a filesystem
image, usually SquashFS, holding the application. When run, the runtime mounts the
image with FUSE and starts the program inside it. Current AppImages (type 2) mark
themselves with the bytes 41 49 02 (AI and the type) at
offset 8, in a part of the ELF header that is otherwise unused. The older type 1 was an
ISO 9660 image that is also an ELF program, marked 41 49 01. The types,
the ELF sections that hold update information and a signature, and the runtime’s
options are on the image types and
runtime page.
Inside the image is an AppDir: an AppRun entry point that starts the
application, a .desktop file with its name and category, an icon, and the
application’s files (see AppDir
contents). The runtime can also extract the image with
--appimage-extract.
0ELF runtime, withAI\x02at offset 8varies…SquashFS image: AppRun, .desktop file, icon, the applicationvaries
Not described
Known, not yet covered
- Reference: the signature section and key, the
.digest_md5section and the SquashFS parameters the tools use. They were removed from the runtime page because no source read this session confirmed them. - Viewer: there is no viewer for AppImage files yet.
Links
Software
- Linux – runs them directly once they are marked executable
- appimagetool – builds an AppImage from an AppDir (Linux)
Reference
- AppImage documentation – the project’s guides for users and packagers
- AppImage Specification – the image types, contents, update information and desktop integration rules