Wat is het FLATPAK-bestandsformaat?
Een .flatpak-bestand is een bundel uit één bestand die is gemaakt door het Flatpak-distributieraamwerk voor Linux. Het verpakt één applicatie of één runtime in een zelfstandig bestand dat u rechtstreeks kunt downloaden, naar een USB-stick kunt kopiëren of als e-mailbijlage kunt verzenden. Flatpak is gemaakt door Alexander Larsson, en bundels uit één bestand maken er sinds 2016 deel van uit.
Onder de motorkap is een standaardbundel een OSTree statische delta gebouwd tegen een lege basis, met extra metadata voor de pictogrammen en appdata van de app. Bundels die zijn gebouwd met de vlag --oci gebruiken in plaats daarvan het OCI-imageformaat. Een bundel laat bewust afhankelijkheden en de volledige AppStream-catalogus weg, dus de bijbehorende runtime moet apart beschikbaar zijn. Ontwikkelaars maken bundels met flatpak build-bundle en kunnen een repository-referentie insluiten zodat updates later kunnen worden opgehaald.
Beveiliging & veiligheid
RISICO: 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.
Formaatdetails
in een notendop- 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.
Programma's die FLATPAK-bestanden openen
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
diepe specificaties| 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) |
| Uitgebracht | 2016 |
| Laatste versie | OSTree static delta / OCI image bundle |
| Open standaard | Ja · royaltyvrij |
| Specificatie | docs.flatpak.org |
FLATPAK conversies
Community V&A
gevraagd door gebruikersNog geen vragen - wees de eerste om iets te vragen over FLATPAK-bestanden.
Veelgestelde vragen
Hoe open of installeer ik een .flatpak-bestand?
flatpak install yourapp.flatpak uit in een terminal, of dubbelklik op het bestand zodat een grafische winkel zoals GNOME Software of KDE Discover het installeert. Flatpak moet eerst op uw distributie zijn ingesteld.Kan ik een .flatpak-bestand openen op Windows of macOS?
Waarom wordt mijn app niet bijgewerkt na het installeren van een .flatpak-bundel?
--runtime-repo/--repo-url, configureert Flatpak een externe bron voor updates; anders moet u handmatig een nieuwere bundel herinstalleren.Wat is het verschil tussen .flatpak, .flatpakref en .flatpakrepo?
.flatpak is een zelfstandige bundel die de eigenlijke app of runtime bevat. .flatpakref is een klein tekstbestand dat naar een app in een externe repository verwijst, en .flatpakrepo beschrijft een toe te voegen externe repository.De installatie mislukt omdat er een runtime ontbreekt. Wat moet ik doen?
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo, en installeer de bundel opnieuw.