FLATPAK ファイル形式とは?
.flatpak ファイルは、Linux 用のアプリケーション配布フレームワークである Flatpak によって作成されるシングルファイル・バンドルです。1つのアプリケーションまたは1つのランタイムをスタンドアロンファイルにパッケージ化し、直接ダウンロードしたり、USB メモリにコピーしたり、メールの添付ファイルとして送信したりできます。Flatpak は Alexander Larsson によって作成され、シングルファイル・バンドルは 2016 年からその一部となっています。
内部的には、デフォルトのバンドルは空のベースに対して構築された OSTree スタティック・デルタであり、アプリのアイコンや appdata 用の追加メタデータが含まれています。--oci フラグを使用して構築されたバンドルは、代わりに OCI イメージ形式を使用します。バンドルは意図的に依存関係や完全な AppStream カタログを除外しているため、対応するランタイムが別途利用可能である必要があります。開発者は flatpak build-bundle を使用してバンドルを作成し、後でアップデートを取得できるようにリポジトリ参照を埋め込むことができます。
セキュリティと安全性
リスク: 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.
形式の詳細
概要- 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.
FLATPAK ファイルを開くプログラム
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. 技術的詳細
詳細仕様| 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) |
| リリース日 | 2016 |
| 最新バージョン | OSTree static delta / OCI image bundle |
| オープンスタンダード | はい · ロイヤリティフリー |
| 仕様書 | docs.flatpak.org |
FLATPAK の変換
コミュニティ Q&A
ユーザーからの質問まだ質問はありません。FLATPAK ファイルについて最初の質問をしてみましょう。
よくある質問
.flatpak ファイルを開いたりインストールしたりするにはどうすればよいですか?
flatpak install yourapp.flatpak を実行するか、ファイルをダブルクリックして GNOME Software や KDE Discover などのグラフィカルストアでインストールします。まず、お使いのディストリビューションで Flatpak がセットアップされている必要があります。Windows や macOS で .flatpak ファイルを開くことはできますか?
.flatpak バンドルをインストールした後、アプリがアップデートされないのはなぜですか?
--runtime-repo または --repo-url を指定して構築されていた場合、Flatpak はアップデート用のリモートを設定しますが、そうでない場合は新しいバンドルを手動で再インストールする必要があります。.flatpak、.flatpakref、.flatpakrepo の違いは何ですか?
.flatpak は実際のアプリやランタイムを保持する自己完結型のバンドルです。.flatpakref はリモートリポジトリ内のアプリを指す小さなテキストファイルであり、.flatpakrepo は追加するリモートリポジトリを記述したものです。ランタイムが不足しているというエラーでインストールが失敗します。どうすればよいですか?
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo)してから、再度バンドルをインストールしてください。