# flatpakref

flatpak

Developer
Alexander
Larsson
alexl@redhat.com
flatpakref
5

# flatpak-flatpakref

Reference to a remote for an application or runtime

## Description

Flatpak uses flatpakref files to share information about a remote for a single application. The `flatpakref` file contains enough information to add the remote and install the application. Use the `flatpak install --from` command to do so.

flatpakref files may also contain additional information that is useful when displaying the application to the user, e.g. in an app store.

The filename extension commonly used for flatpakref files is `.flatpakref`.

A flatpakref file can also refer to a remote for a runtime.

## File format

The flatpakref file is using the same .ini file format that is used for systemd unit files or application .desktop files.

### [Flatpak Ref]

All the information is contained in the [Flatpak Ref] group.

The following keys can be present in this group:

`Version` (uint64)

  The version of the file format, must be 1 if present.

`Name` (string)

  The fully qualified name of the runtime or application. This key is mandatory.

`Url` (string)

  The url for the remote. This key is mandatory.

`Branch` (string)

  The name of the branch from which to install the application or runtime. If this key is not specified, the "master" branch is used.

`Title` (string)

  The title of the application or runtime. This should be a user-friendly name that can be displayed e.g. in an app store.

`Comment` (string)

  A short summary of the application or runtime, for display e.g. in an app store.

`Description` (string)

  A longer description of the application or runtime, for display e.g. in an app store.

`Icon` (string)

  The url for an icon that can be used to represent the application or runtime.

`Homepage` (string)

  The url of a webpage describing the application or runtime.

`DeployCollectionID` (string)

  The collection ID of the remote, if it has one. This uniquely identifies the collection of apps in the remote, to allow peer to peer redistribution. It is recommended to use this key over CollectionID because only newer clients pay attention to it (and older clients don't handle collection IDs properly).

`CollectionID` (string)

  This is deprecated but still supported for backwards compatibility. Use DeployCollectionID instead.

`IsRuntime` (boolean)

  Whether this file refers to a runtime. If this key is not specified, the file is assumed to refer to an application.

`GPGKey` (string)

  The base64-encoded gpg key for the remote.

`RuntimeRepo` (string)

  The url for a .flatpakrepo file for the remote where the runtime can be found.

`SuggestRemoteName` (string)

  A suggested name for the remote.

## Example

    [Flatpak Ref]
    Title=gedit
    Name=org.gnome.gedit
    Branch=stable
    Url=http://sdk.gnome.org/repo-apps/
    IsRuntime=False

    DeployCollectionID=org.gnome.Apps

## See also

flatpak 1, flatpak-install 1 flatpak-flatpakrepo 5,