FLATPAK-BUILD-BUNDLE(1)
π flatpak-build-bundle β it's giving "one file, whole app" π
okay bestie, welcome to flatpak-build-bundle(1), a lil page from the flatpak manual, section 1 (that's the "user commands" section, iykyk). she's a build-tool girlie and she's about to hand you a single file containing a whole app or runtime. no cap. π
β¨ NAME β¨
flatpak-build-bundle β Create a single-file bundle from a local repository
β¨ SYNOPSIS β¨
flatpak build-bundle [OPTION...] LOCATION FILENAME NAME [BRANCH]
β¨ DESCRIPTION β¨
So here's the tea β: this command creates a single-file named FILENAME for the application (or runtime) named NAME sitting in the repository at LOCATION. If you also pass a BRANCH, then that branch of the application is the one that gets used. slay. π
The collection ID set on the repository at LOCATION β if it's set β will be used for the bundle. (if it's not set, it's not set, that's just how it is π«Ά)
Unless --oci is used, the format of the bundle file is that of an ostree static delta (against an empty base) with some flatpak specific metadata for the application icons and appdata. iconic behavior honestly.
β¨ OPTIONS β¨
The following options are understood:
-h,--helpβ Show help options and exit. short, sweet, helpful. queen behavior. π--runtimeβ Export a runtime instead of an application. plot twist: it's not an app this time, it's a runtime.--arch=ARCHβ The arch to create a bundle for. Wanna know which architectures your host actually supports? Checkflatpak --supported-arches. π»--repo-url=URLβ The URL for the repository from which the application can be updated. The way this works: installing the bundle will automatically configure a remote for this URL. auto-setup, we love to see it. β¨--runtime-repo=URLβ The URL for a.flatpakrepofile that contains the information about the repository that supplies the runtimes required by the app. π§--gpg-keys=FILEβ Add the GPG key fromFILE(use-for stdin). yes bestie, a literal dash means stdin, that's not a typo. π--gpg-homedir=PATHβ GPG Homedir to use when looking for keyrings. tell her where the keyrings live π--from-commit=COMMITβ The OSTree commit to create a delta bundle from.--ociβ Export to an OCI image instead of a Flatpak bundle. different format, same drama. π--oci-layer-compress=gzip|zstdβ Choose how to compress the layers in OCI images.gzip(the default) is universally supported, butzstdcompresses faster and results in smaller images. As of 2023, zstd support is present in most major registries. so if you wanna be β¨efficientβ¨, you know what to do.-v,--verboseβ Print debug information during command processing. she's chatty and we respect it. π¬--ostree-verboseβ Print OSTree debug information during command processing. even MORE chatty. the ostree-level lore. π
β¨ EXAMPLES β¨
first one, using the system-wide repo path:
$ flatpak build-bundle /var/lib/flatpak/repo gnome-calculator.flatpak
org.gnome.Calculator stable
second one, same energy but with your own local user repo:
$ flatpak build-bundle ~/.local/share/flatpak/repo
gnome-calculator.flatpak org.gnome.Calculator stable
ok tiny heads-up bestie π«Ά the synopsis is [OPTION...] LOCATION FILENAME NAME [BRANCH] β one line in the synopsis, but in real life your shell might wrap it across two lines like the examples above. it's still the same four-ish arguments, promise. don't panic. πΈ
β¨ SEE ALSO β¨
go read these too, they're all in the same friend group:
ostree(1)flatpak(1)flatpak-build-init(1)flatpak-build(1)flatpak-build-finish(1)flatpak-build-import-bundle(1)flatpak-build-update-repo(1)
and that's the whole page, bestie!! π¦ this manual came to you from the flatpak project, and it lives in section 1 of the manual set (that's FLATPAK BUILD-BUNDL(1) if you're keeping score π). go build a bundle, you're gonna eat. πβ¨ no cap, periodt. π
π¦ where this page comes from
- fedora 44: flatpak 1.18.4-1.fc44 Β· LGPL-2.1-or-later
- fedora 44: flatpak 1.18.4-1.fc44 Β· LGPL-2.1-or-later
- nixpkgs unstable: flatpak 1.18.4
- ubuntu stonking: flatpak 1.18.4-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms