Was ist das FLATPAK-Dateiformat?
Eine .flatpak-Datei ist ein Einzeldatei-Bundle, das vom Flatpak-Anwendungsverteilungs-Framework für Linux erstellt wurde. Es verpackt eine Anwendung oder eine Laufzeitumgebung in eine eigenständige Datei, die Sie direkt herunterladen, auf einen USB-Stick kopieren oder als E-Mail-Anhang versenden können. Flatpak wurde von Alexander Larsson entwickelt, und Einzeldatei-Bundles sind seit 2016 Teil davon.
Unter der Oberfläche ist ein Standard-Bundle ein statisches OSTree-Delta, das auf einer leeren Basis aufbaut, mit zusätzlichen Metadaten für die Icons und Appdata der App. Bundles, die mit dem Flag --oci erstellt wurden, verwenden stattdessen das OCI-Image-Format. Ein Bundle lässt Abhängigkeiten und den vollständigen AppStream-Katalog bewusst weg, daher muss die passende Laufzeitumgebung separat verfügbar sein. Entwickler erstellen Bundles mit flatpak build-bundle und können eine Repository-Referenz einbetten, damit Updates später abgerufen werden können.
Sicherheit
RISIKO: MEDIUMA .flatpak bundle installs and runs executable software, so only install bundles from sources you trust. Flatpak sandboxes apps with portals and permissions, which limits what an installed app can reach, but a bundle can still request broad permissions. Bundles can be GPG-signed, yet a plain download offers no signature guarantee, so verify the origin before installing. Bundles do not receive automatic updates unless a runtime/repo remote is configured.
Formatdetails
kurz gefasst- Flatpak reference file (.flatpakref) - Related but distinct format; a text pointer to an app in a remote repo, MIME application/vnd.flatpak.ref.
- Flatpak repository file (.flatpakrepo) - Related but distinct; describes a Flatpak remote to add, MIME application/vnd.flatpak.repo.
Programme zum Öffnen von FLATPAK-Dateien
flatpak install yourapp.flatpak in a terminal to install the bundle; add --user to install it for the current user only. .flatpak file to open it in GNOME Software, then click Install to add the application graphically. flatpak build-import-bundle repo yourapp.flatpak to import the bundle back into an OSTree repository for re-hosting. Technische Details
technische Spezifikation| Encoding | Binary. Default bundles use GVariant-serialized OSTree data; OCI bundles use the OCI image layout. |
| Container | OSTree static delta against an empty base, carrying Flatpak-specific metadata for application icons and AppStream/appdata |
| Compression | OSTree delta compression by default; --oci bundles compress layers with gzip (default) or zstd |
| Encryption | None. Integrity/authenticity is provided by optional GPG signatures embedded at build time via --gpg-keys |
| Integrity | OSTree content-addressed object checksums; optional GPG signing of the bundle |
| Typical size | A few megabytes to several hundred megabytes, depending on the application and whether the runtime is bundled |
| Structure | Single file holding one application or runtime revision as an OSTree static delta, plus metadata (app id, branch, icons, appdata, and an optional runtime-repo/repo-url for updates). Does not include dependencies or full AppStream catalog data. |
| Platforms | Linux |
| Notes | Created with `flatpak build-bundle`; imported back to a repo with `flatpak build-import-bundle`. Installed directly with `flatpak install file.flatpak`. Bundles are meant for direct download, removable media, or email; Flatpak recommends `flatpak create-usb` when dependencies and AppStream data are needed for offline installs. |
| Byte order | GVariant native (little-endian on common Linux hardware) |
| Veröffentlicht | 2016 |
| Neueste Version | OSTree static delta / OCI image bundle |
| Offener Standard | Ja · lizenzgebührenfrei |
| Spezifikation | docs.flatpak.org |
FLATPAK-Konvertierungen
Community Q&A
von Nutzern gefragtNoch keine Fragen - stellen Sie die erste Frage zu FLATPAK-Dateien.
Häufig gestellte Fragen
Wie öffne oder installiere ich eine .flatpak-Datei?
flatpak install yourapp.flatpak in einem Terminal aus, oder klicken Sie doppelt auf die Datei, damit ein grafischer Store wie GNOME Software oder KDE Discover sie installiert. Flatpak muss zuerst auf Ihrer Distribution eingerichtet sein.Kann ich eine .flatpak-Datei unter Windows oder macOS öffnen?
Warum wird meine App nach der Installation eines .flatpak-Bundles nicht aktualisiert?
--runtime-repo/--repo-url erstellt wurde, konfiguriert Flatpak ein Remote-Ziel für Updates; andernfalls müssen Sie ein neueres Bundle manuell neu installieren.Was ist der Unterschied zwischen .flatpak, .flatpakref und .flatpakrepo?
.flatpak ist ein eigenständiges Bundle, das die eigentliche App oder Laufzeitumgebung enthält. .flatpakref ist eine kleine Textdatei, die auf eine App in einem Remote-Repository verweist, und .flatpakrepo beschreibt ein hinzuzufügendes Remote-Repository.Die Installation schlägt fehl, weil eine Laufzeitumgebung fehlt. Was soll ich tun?
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo, und installieren Sie das Bundle dann erneut.