Why convert FLATPAK to FLATPAKREF?
A .flatpak is a single self-contained bundle, while a .flatpakref is a tiny reference file that adds a remote and installs one app in a single click. You create the .flatpakref after you have somewhere to host the app, so the bundle first has to go into a repository.
How to convert FLATPAK to FLATPAKREF
flatpak build-import-bundle + repo OPEN-SOURCE
Run flatpak build-import-bundle ~/my-repo app.flatpak to import the bundle, then flatpak build-update-repo ~/my-repo and host that directory over HTTP.
Write the .flatpakref file FREE
Create a text file with [Flatpak Ref] and fields Name=, Branch=, Url= (your repo URL) and the base64 GPGKey=; users open it to add the remote and install the app.
Install the bundle directly instead EASIEST
If you do not need a repo, skip the ref entirely: flatpak install app.flatpak installs a single-file bundle without any .flatpakref.
About these formats
A .flatpak file is a Flatpak single-file bundle: one Linux application or runtime packaged into a standalone file for direct download, sharing on removable media, or sending by email. Open…
Open .FLATPAK details →A .FLATPAKREF file is a data file used by specific software.
Open .FLATPAKREF details →Quality & what to watch
- A
.flatpakrefonly works if the repository it points to stays online; it contains no application data itself. - The
Urlin the ref must match where you actually host the repo, and theGPGKeymust be the base64 of the key that signed the repo, or installs fail. - Single-file bundles carry no update path, so the point of the ref is to give users a repo they can update from.
Frequently asked questions
Does build-import-bundle produce a .flatpakref?
.flatpakref file by hand.What are the mandatory fields in a .flatpakref?
Name, Branch and Url; GPGKey and RuntimeRepo are needed for signed repos and runtime resolution.Do I have to host a repository?
flatpak install app.flatpak on the bundle directly.How do I get the base64 GPGKey value?
gpg --export <keyid> and pipe it through base64 | tr -d '\n'.