From f5dec7c2198c73ed589bb8a38fb5d400a1885197 Mon Sep 17 00:00:00 2001
From: Will Thompson
+
+ The command reference is generated from the flatpak repo; see https://github.com/flatpak/flatpak/tree/master/doc
+
Flatpak comes with a rich commandline interface.
- Table of Contents Table of Contents flatpak — Build, install and run applications and runtimes
+ Table of Contents Table of Contents flatpak — Build, install and run applications and runtimes
flatpak is a tool for managing applications and the runtimes
they use. In the flatpak model, applications can be built and
distributed independently from the host system they are used
@@ -33,7 +35,7 @@
it uses are OSTree repositories and can be manipulated with the
ostree utility. Installed runtimes and
applications are OSTree checkouts.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
Print debug information during command processing. Use -vv for more detail.
@@ -47,7 +49,7 @@
Print the supported arches in priority order and exit.
Print the list of active gl drivers and exit.
- Commands for managing installed applications and runtimes:
Install an application or a runtime from a remote or bundle.
Update an installed application or runtime.
@@ -59,6 +61,10 @@
Show information for an installed application or runtime.
Manage flatpak configuration.
+
+ Repair flatpak installation.
+
+ Copy apps and/or runtimes onto removable media.
Commands for finding applications and runtimes:
Search for applications and runtimes.
Commands for running applications:
@@ -77,6 +83,14 @@
Show information about a specific file.
List exported files.
+ Commands for managing the dynamic permission store:
+ Remove item from permission store.
+
+ List permissions.
+
+ Show app permissions.
+
+ Reset app permissions.
Commands for managing remote repositories:
List all configured remote repositories.
@@ -107,7 +121,19 @@
Update the summary file in a repository.
Create a new commit based on an existing ref.
- File formats that are used by Flatpak commands:
+ Reference to a remote for an application or runtime
+
+ Reference to a remote
+
+ Configuration for a remote
+
+ Configuration for an installation location
+
+ Information about an application or runtime
+
Besides standard environment variables such as
@@ -121,22 +147,25 @@
The location of flatpak site configuration. If this is not set,
Table of Contents Table of Contents flatpak-build-bundle — Create a single-file bundle from a local repository
Creates a single-file named FILENAME
for the application (or runtime) named NAME
in the repository at LOCATION . If
a BRANCH is specified, this branch of
the application is used.
-
+
+ The collection ID set on the repository at
+ LOCATION (if set) will be used for the
+ bundle.
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.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
Export a runtime instead of an application.
@@ -159,9 +188,11 @@
Export to an OCI image instead of a Flatpak bundle.
Print debug information during command processing.
-
- Print version information and exit.
-
+ $ flatpak build-bundle /var/lib/flatpak/repo gnome-calculator.flatpak org.gnome.Calculator stable
+
ostree(1),
flatpak(1),
flatpak-build-init(1),
@@ -169,13 +200,16 @@
flatpak-build-finish(1),
flatpak-build-import-bundle(1),
flatpak-build-update-repo(1)
- flatpak-build-commit-from — Create new commits based on existing one (possibly from another repository) flatpak-build-commit-from — Create new commits based on existing one (possibly from another repository)
Creates new commits on the DST-REF
branch in the DST-REPO , with the
contents (and most of the metadata) taken from another
branch, either from another repo, or from another branch in
the same repository.
-
+
+ The collection ID set on
+ DST-REPO (if set) will be used for the
+ newly created commits.
This command is very useful when you want to maintain a branch
with a clean history that has no unsigned or broken commits.
@@ -188,7 +222,7 @@
Any deltas that affect the original commit and that match parent
commits in the destination repository are copied and rewritten
for the new commit id.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
The (local) repository to pull the source branch from. Defaults to the
@@ -213,6 +247,9 @@
finally updating the summary.
Create new commit even if the content didn't change from the existing branch head.
+
+ Don't fsync when writing to the repository. This can result in data loss in exceptional situations, but can improve performance when
+ working with temporary or test repositories.
Sign the commit with this GPG key.
This option can be used multiple times.
@@ -222,18 +259,11 @@
Print debug information during command processing.
Print OSTree debug information during command processing.
-
- Print version information and exit.
-
+ To revert a commit to the commit before:
+
+ $ flatpak build-commit-from --timestamp=NOW --src-ref=app/org.gnome.gedit/x86_64/master^ repo app/org.gnome.gedit/x86_64/master
+
ostree(1),
flatpak(1),
flatpak-build-init(1),
@@ -241,7 +271,7 @@ Content Bytes Written: 305
flatpak-build-finish(1),
flatpak-build-sign(1),
flatpak-build-update-repo(1)
- flatpak-build-export — Create a repository from a build directory flatpak-build-export — Create a repository from a build directory
Creates or updates a repository with an application build.
LOCATION is the location of the
repository. DIRECTORY must be a
@@ -260,15 +290,29 @@ Content Bytes Written: 305
of the
+ When exporting a flatpak to be published to the internet,
+
The build-update-repo command should be used to update repository
metadata whenever application builds are added to a repository.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
One line subject for the commit message.
Full description for the commit message.
+
+ Set as the collection ID of the repository. Setting a globally
+ unique collection ID allows the apps in the repository to be shared over
+ peer to peer systems without needing further configuration.
+ If exporting to an existing repository, the collection ID
+ must match the existing configured collection ID for that
+ repository.
Specify the architecture component of the branch to export. Only host compatible architectures can be specified.
@@ -287,6 +331,9 @@ Content Bytes Written: 305
than the regular
Use the specified ISO 8601 formatted date in the commit metadata and, if
+ Don't fsync when writing to the repository. This can result in data loss in exceptional situations, but can improve performance when
+ working with temporary or test repositories.
Update the appstream branch after the build.
@@ -305,9 +352,7 @@ Content Bytes Written: 305
Print debug information during command processing.
Print OSTree debug information during command processing.
-
- Print version information and exit.
-
$ flatpak build-export ~/repos/gnome-calculator/ ~/build/gnome-calculator/ org.gnome.Calculator
ostree(1),
flatpak(1),
flatpak-build-init(1),
@@ -324,7 +369,7 @@ Content Bytes Written: 305
flatpak-build-finish(1),
flatpak-build-sign(1),
flatpak-build-update-repo(1)
- flatpak-build-finish — Finalize a build directory flatpak-build-finish — Finalize a build directory
Finalizes a build directory, to prepare it for exporting.
DIRECTORY is the name of the directory.
@@ -340,7 +385,7 @@ Content Bytes Written: 305
It is an error to run build-finish on a directory that has not
been initialized as a build directory, or has already been finalized.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
The command to use. If this option is not specified,
@@ -361,12 +406,12 @@ Content Bytes Written: 305
Expose a well known socket to the application. This updates
the [Context] group in the metadata.
- SOCKET must be one of: x11, wayland, fallback-x11, pulseaudio, system-bus, session-bus.
+ SOCKET must be one of: x11, wayland, fallback-x11, pulseaudio, system-bus, session-bus, ssh-auth.
This option can be used multiple times.
Don't expose a well known socket to the application. This updates
the [Context] group in the metadata.
- SOCKET must be one of: x11, wayland, fallback-x11, pulseaudio, system-bus, session-bus.
+ SOCKET must be one of: x11, wayland, fallback-x11, pulseaudio, system-bus, session-bus, ssh-auth.
This option can be used multiple times.
Expose a device to the application. This updates
@@ -381,7 +426,7 @@ Content Bytes Written: 305
Allow access to a specific feature. This updates
the [Context] group in the metadata.
- FEATURE must be one of: devel, multiarch.
+ FEATURE must be one of: devel, multiarch, bluetooth.
This option can be used multiple times.
The
+ The
Disallow access to a specific feature. This updates
the [Context] group in the metadata.
- FEATURE must be one of: devel, multiarch.
+ FEATURE must be one of: devel, multiarch, bluetooth.
This option can be used multiple times.
Allow the application access to a subset of the filesystem.
@@ -466,6 +515,12 @@ key=v1;v2;
be set to "true".
Add extension point info.
+ See the documentation for
+ flatpak-metadata(5)
+ for the possible values of
+
+ Remove extension point info.
Set the priority (library override order) of the extension point.
Only useful for extensions. 0 is the default, and higher value means higher
@@ -481,9 +536,7 @@ key=v1;v2;
Print debug information during command processing.
Print OSTree debug information during command processing.
-
- Print version information and exit.
-
$ flatpak build-finish /build/my-app --socket=x11 --share=ipc
flatpak-build-import-bundle — Import a file bundle into a local repository flatpak-build-import-bundle — Import a file bundle into a local repository
Imports a bundle from a file named FILENAME
into the repository at LOCATION .
The format of the bundle file is that generated by build-bundle.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
Print debug information during command processing.
@@ -523,14 +576,12 @@ Please review the exported files and the metadata
This option can be used multiple times.
GPG Homedir to use when looking for keyrings
-
- Print version information and exit.
- flatpak-build-init — Initialize a build directory flatpak-build-init — Initialize a build directory
Initializes a directory for building an application.
DIRECTORY is the name of the directory.
APPNAME is the application id of the app
@@ -546,7 +597,7 @@ Please review the exported files and the metadata
It is an error to run build-init on a directory that has already
been initialized as a build directory.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
The architecture to use.
@@ -563,6 +614,8 @@ Please review the exported files and the metadata
When using --writable-sdk, in addition to the sdk, also install the specified extension.
This option can be used multiple times.
+
+ Add extension point info.
Specify a custom subdirectory to use instead of
@@ -580,18 +633,21 @@ Please review the exported files and the metadata
is "app" which is a regular app, but "runtime" creates a runtime
based on an existing runtime, and "extension" creates an extension
for an app or runtime.
+
+ If building an extension, the tag to use when searching for
+ the mount point of the extension.
Print debug information during command processing.
-
- Print version information and exit.
- flatpak-build-sign — Sign an application or runtime flatpak-build-sign — Sign an application or runtime
Signs the commit for a specified application or runtime in
a local repository. LOCATION is
the location of the repository. ID is the name of the application, or
@@ -600,7 +656,7 @@ Please review the exported files and the metadata
Applications can also be signed during build-export, but
it is sometimes useful to add additional signatures later.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
Sign the commit with this GPG key.
@@ -615,16 +671,14 @@ Please review the exported files and the metadata
Print debug information during command processing.
Print OSTree debug information during command processing.
-
- Print version information and exit.
- flatpak-build-update-repo — Create a repository from a build directory flatpak-build-update-repo — Create a repository from a build directory
Updates repository metadata for the repository at
LOCATION . This command generates
an OSTree summary file that lists the contents of the repository.
@@ -634,7 +688,7 @@ Please review the exported files and the metadata
After this command, LOCATION can be
used as the repository location for flatpak remote-add, either by
exporting it over http, or directly with a file: url.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
Redirect this repo to a new URL.
@@ -646,6 +700,20 @@ Please review the exported files and the metadata
Import a new default GPG public key from the
given file.
+
+ The globally unique identifier of the remote repository, to
+ allow mirrors to be grouped. This must be set to a globally
+ unique reverse DNS string if the repository is to be made
+ publicly available. If a collection ID is already set on an
+ existing repository, this will update it. If not specified,
+ the existing collection ID will be left unchanged.
+
+ Deploy the collection ID (set using
Sign the commit with this GPG key.
This option can be used multiple times.
@@ -662,14 +730,12 @@ Please review the exported files and the metadata
Print debug information during command processing.
Print OSTree debug information during command processing.
-
- Print version information and exit.
- flatpak-build — Build in a directory flatpak-build — Build in a directory
Runs a build command in a directory. DIRECTORY
must have been initialized with flatpak build-init.
@@ -679,10 +745,12 @@ Please review the exported files and the metadata
are mounted at The following options are understood:
+ The following options are understood:
Show help options and exit.
Print debug information during command processing.
+
+ Print OSTree debug information during command processing.
Use the non-devel runtime that is specified in the application metadata instead of the devel runtime.
@@ -704,12 +772,12 @@ Please review the exported files and the metadata
Expose a well-known socket to the application. This overrides to
the Context section from the application metadata.
- SOCKET must be one of: x11, wayland, fallback-x11, pulseaudio, system-bus, session-bus.
+ SOCKET must be one of: x11, wayland, fallback-x11, pulseaudio, system-bus, session-bus, ssh-auth.
This option can be used multiple times.
Don't expose a well-known socket to the application. This overrides to
the Context section from the application metadata.
- SOCKET must be one of: x11, wayland, fallback-x11, pulseaudio, system-bus, session-bus.
+ SOCKET must be one of: x11, wayland, fallback-x11, pulseaudio, system-bus, session-bus, ssh-auth.
This option can be used multiple times.
Expose a device to the application. This overrides to
@@ -724,22 +792,15 @@ Please review the exported files and the metadata
Allow access to a specific feature. This updates
the [Context] group in the metadata.
- FEATURE must be one of: devel, multiarch.
+ FEATURE must be one of: devel, multiarch, bluetooth.
This option can be used multiple times.
-
- The
- The
+ See flatpak-build-finish(1)
+ for the meaning of the various features.
Disallow access to a specific feature. This updates
the [Context] group in the metadata.
- FEATURE must be one of: devel, multiarch.
+ FEATURE must be one of: devel, multiarch, bluetooth.
This option can be used multiple times.
Allow the application access to a subset of the filesystem.
@@ -818,16 +879,16 @@ key=v1;v2;
Log system bus traffic. This can be useful to see what access you need to allow in
your D-Bus policy.
- flatpak-config — Manage configuration The following options are understood:
+ flatpak-create-usb — Copy apps and/or runtimes onto removable media.
+ Copies the specified apps and/or runtimes REF s onto the removable
+ media mounted at MOUNT-PATH , along with all the dependencies and
+ metadata needed for installing them. This is one way of transferring flatpaks
+ between computers that doesn't require an Internet connection. After using
+ this comand, the USB drive can be connected to another computer and
+ flatpak install will prefer to install from it rather than
+ the Internet if the refs are the newest available. For this process to work a
+ collection ID must be configured on the relevant remotes on both the source
+ and destination computers, and on the remote server.
+
+ Each REF argument is a full or partial indentifier in the
+ flatpak ref format, which looks like "(app|runtime)/ID/ARCH/BRANCH". All elements
+ except ID are optional and can be left out, including the slashes,
+ so most of the time you need only specify ID. Any part left out will be matched
+ against what is installed, and if there are multiple matches an error message
+ will list the alternatives.
+
+ By default this looks for both installed apps and runtimes
+ with the given REF , but you can
+ limit this by using the --app or --runtime option.
+
+ All REF s must be in the same installation (user, system, or other).
+ Otherwise it's ambiguous which repository metadata refs to put on the USB drive.
+
+ By default flatpak create-usb uses
+ Unless overridden with the --system, --user, or --installation
+ options, this command searches both the system-wide installation
+ and the per-user one for REF and errors
+ out if it exists in more than one.
+ The following options are understood:
+ Show help options and exit.
+
+ Uninstalls from a per-user installation.
+
+ Uninstalls from the default system-wide installation.
+
+ Copies refs from a system-wide installation specified by
+ NAME among those defined in
+
+ Assume that all REF s are apps if not explicitly specified.
+
+ Assume that all REF s are runtimes if not explicitly specified.
+
+ Create the repository in DEST under MOUNT-PATH, rather than
+ the default location.
+
+ Print debug information during command processing.
+
+ Print OSTree debug information during command processing.
+ flatpak-document-export — Export a file to a sandboxed application flatpak-document-export — Export a file to a sandboxed application
Creates a document id for a local file that can be exposed to
sandboxed applications, allowing them access to files that they
would not otherwise see. The exported files are exposed in a
@@ -860,7 +991,7 @@ key=v1;v2;
This command also lets you modify the per-application
permissions of the documents, granting or revoking access
to the file on a per-application basis.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
Don't reuse an existing document id
for the file. This makes it safe to later remove the
@@ -894,31 +1025,31 @@ key=v1;v2;
Revoke the ability to grant further permissions for the applications specified with --app.
Print debug information during command processing.
-
- Print version information and exit.
- flatpak-document-info — Show information about exported files flatpak-document-info — Show information about exported files
Shows information about an exported file, such as the
document id, the fuse path, the original location in the
filesystem, and the per-application permissions.
FILE can either be a file in the fuse filesystem at /run/user/$UID/doc/,
or a file anywhere else.
- The following options are understood:
+ flatpak-document-list — List exported files
Lists exported files, with their document id and the
full path to their origin. If an APPID is specified,
only the files exported to this app are listed.
- flatpak-document-unexport — Stop exporting a file flatpak-document-unexport — Stop exporting a file
Removes the document id for the file from the
document portal. This will make the document unavailable
to all sandboxed applications.
- flatpak-enter — Enter an application flatpak-permission-remove — List permissions
+ Removes an entry for the object with id ID to the permission
+ store table TABLE. The ID must be in a suitable format
+ for the table.
+
+ The permission store is used by portals.
+ Each portal generally has its own table in the permission
+ store, and the format of the table entries is specific to
+ each portal.
+ The following options are understood:
+ Show help options and exit.
+
+ Print debug information during command processing.
+
+ Print OSTree debug information during command processing.
+
+ flatpak(1),
+ flatpak-permission-list(1),
+ flatpak-permission-show(1),
+ flatpak-permission-reset(1),
+ flatpak-permission-list — List permissions
+ Lists dynamic permissions which are stored in the Flatpak
+ permission store.
+
+ When called without arguments, lists all
+ the entries in all permission store tables. When called
+ with one argument, lists all the entries in the named
+ table. When called with two arguments, lists the entry
+ in the named table for the given object ID.
+
+ The permission store is used by portals.
+ Each portal generally has its own table in the permission
+ store, and the format of the table entries is specific to
+ each portal.
+ The following options are understood:
+ Show help options and exit.
+
+ Print debug information during command processing.
+
+ Print OSTree debug information during command processing.
+
+ flatpak(1),
+ flatpak-permission-show(1),
+ flatpak-permission-remove(1),
+ flatpak-permission-reset(1),
+ flatpak-permission-show — List permissions
+ Lists dynamic permissions for the given app which are stored
+ in the Flatpak permission store.
+
+ When called without arguments, lists all
+ the entries in all permission store tables. When called
+ with one argument, lists all the entries in the named
+ table. When called with two arguments, lists the entry
+ in the named table for the given object ID.
+
+ The permission store is used by portals.
+ Each portal generally has its own table in the permission
+ store, and the format of the table entries is specific to
+ each portal.
+ The following options are understood:
+ Show help options and exit.
+
+ Print debug information during command processing.
+
+ Print OSTree debug information during command processing.
+
+ flatpak(1),
+ flatpak-permission-list(1),
+ flatpak-permission-remove(1),
+ flatpak-permission-reset(1),
+ flatpak-permission-reset — Reset permissions
+ Removes all permissions for the given app from the Flatpak
+ permission store.
+
+ The permission store is used by portals.
+ Each portal generally has its own table in the permission
+ store, and the format of the table entries is specific to
+ each portal.
+ The following options are understood:
+ Show help options and exit.
+
+ Print debug information during command processing.
+
+ Print OSTree debug information during command processing.
+
+ flatpak(1),
+ flatpak-permission-list(1),
+ flatpak-permission-show(1),
+ flatpak-permission-remove(1),
+ flatpak-enter — Enter an application
Enter a running sandbox.
SANDBOXEDPID must be the pid of a process running in a flatpak sandbox.
COMMAND is the command to run in the sandbox.
@@ -971,29 +1191,39 @@ permissions:
when you want to debug a problem with a running application.
This command requires extra privileges, so must be run as root or via e.g. sudo.
- flatpak-info — Show information about installed application and/or runtime flatpak-info — Show information about an installed application or runtime
+ Show info about an installed application or runtime.
By default, the output is formatted in a friendly format.
- If you specify one of the options --show-ref, --show-commit,
- --show-origin, --show-metadata or --show-size, the output is instead formatted
+ If you specify one of the options
+ --show-ref,
+ --show-origin,
+ --show-commit,
+ --show-size,
+ --show-metadata,
+ --show-permissions,
+ --file-access,
+ --show-location,
+ --show-runtime or
+ --show-sdk,
+ the output is instead formatted
in a machine-readable format.
By default, both per-user and system-wide installations
are queried. Use the --user, --system or --installation
options to change this.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
Query per-user installations.
@@ -1016,19 +1246,27 @@ permissions:
Show the installed size.
Show the metadata.
+
+ Show the runtime.
+
+ Show the SDK.
+
+ Show the permissions.
+
+ Show the level of access to the given path.
Show the matching extensions.
Print debug information during command processing.
-
- Print version information and exit.
- flatpak-install — Install an application or runtime Install from a configured remote: Install from a .flatpakref file: Install from a .flatpak bundle: flatpak-install — Install an application or runtime Install from a configured remote: Install from a .flatpakref file: Install from a .flatpak bundle:
Installs an application or runtime. The primary way to
install is to specify a [REMOTE]
name as the source and one ore more [REF]s to specify the
@@ -1048,22 +1286,28 @@ permissions:
If REMOTE is a uri or a path (absolute or relative starting with ./)
to a local repository, then that repository will be used as the source, and a temporary remote
will be created for the lifetime of the REF .
+
+ If the specified REMOTE has a collection ID configured on it,
+ flatpak will search mounted filesystems such as USB drives as well as Avahi services
+ advertised on the local network for the needed refs, in order to support
+ offline updates. See ostree-find-remotes(1)
+ for more information.
The alternative form of the command ([--from] or
[--bundle] allows you to
install directly from a source such as a .flatpak
single-file bundle, a .flatpakref app description. The options are optional if the first
- argument have the right extension.
+ argument has the right extension.
Note that flatpak allows one to have multiple branches of an application and runtimes
- installed and used at the same time. However, only version of an application one can be current,
+ installed and used at the same time. However, only one version of an application can be current,
meaning its exported files (for instance desktop files and icons) are
visible to the host. The last installed version is made current by
default, but you can manually change with make-current.
Unless overridden with the --user or the --installation option, this command installs
the application or runtime in the default system-wide installation.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
Assume LOCATION is a .flatpak single-bundle file.
@@ -1071,6 +1315,8 @@ permissions:
Assume LOCATION is a .flatpakref file containing the details of the app to be installed.
This is optional if the arguments ends with .flatpakref.
+
+ Uninstall first if already installed.
Install the application or runtime in a per-user installation.
@@ -1106,9 +1352,7 @@ permissions:
Print debug information during command processing.
Print OSTree debug information during command processing.
-
- Print version information and exit.
- flatpak-list — List installed applications and/or runtimes
+ Lists the names of the installed applications and/or runtimes.
By default, both per-user and system-wide installations
are shown. Use the --user, --installation or --system
options to change this.
- By default this lists both installed apps and runtime, but you can
+ By default this lists both installed apps and runtimes, but you can
change this by using the --app or --runtime option.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
List per-user installations.
@@ -1156,20 +1400,18 @@ permissions:
Print debug information during command processing.
Print OSTree debug information during command processing.
-
- Print version information and exit.
- flatpak-make-current — Make a specific version of an app current flatpak-make-current — Make a specific version of an app current
Makes a particular branch of an application current. Only the current branch
of an app has its exported files (such as desktop files and icons) made visible
to the host.
@@ -1179,7 +1421,7 @@ org.gnome.GEdit
Unless overridden with the --user or --installation options, this command
changes the default system-wide installation.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
Update a per-user installation.
@@ -1194,15 +1436,15 @@ org.gnome.GEdit
The architecture to install for.
Print debug information during command processing.
-
- Print version information and exit.
- flatpak-override — Override application requirements
Overrides the application specified runtime requirements. This can be used
to grant a sandboxed application more or less resources than it requested.
@@ -1216,7 +1458,7 @@ org.gnome.GEdit
Unless overridden with the --user or --installation options, this command
changes the default system-wide installation.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
Update a per-user installation.
@@ -1240,12 +1482,12 @@ org.gnome.GEdit
Expose a well-known socket to the application. This overrides to
the Context section from the application metadata.
- SOCKET must be one of: x11, wayland, fallback-x11, pulseaudio, system-bus, session-bus.
+ SOCKET must be one of: x11, wayland, fallback-x11, pulseaudio, system-bus, session-bus, ssh-auth.
This option can be used multiple times.
Don't expose a well-known socket to the application. This overrides to
the Context section from the application metadata.
- SOCKET must be one of: x11, wayland, fallback-x11, pulseaudio, system-bus, session-bus.
+ SOCKET must be one of: x11, wayland, fallback-x11, pulseaudio, system-bus, session-bus, ssh-auth.
This option can be used multiple times.
Expose a device to the application. This overrides to
@@ -1260,22 +1502,15 @@ org.gnome.GEdit
Allow access to a specific feature. This updates
the [Context] group in the metadata.
- FEATURE must be one of: devel, multiarch.
+ FEATURE must be one of: devel, multiarch, bluetooth.
This option can be used multiple times.
- The
- The
Disallow access to a specific feature. This updates
the [Context] group in the metadata.
- FEATURE must be one of: devel, multiarch.
+ FEATURE must be one of: devel, multiarch, bluetooth.
This option can be used multiple times.
Allow the application access to a subset of the filesystem.
@@ -1336,16 +1571,16 @@ key=v1;v2;
This option can be used multiple times.
Print debug information during command processing.
-
- Print version information and exit.
- flatpak-remote-add — Add a remote repository Add from a .flatpakrepo file: Manually specify repo uri and options: flatpak-remote-add — Add a remote repository Add from a .flatpakrepo file: Manually specify repo uri and options:
Adds a remote repository to the flatpak repository
configuration. [NAME] is the name for the new
remote, and [LOCATION] is a url or pathname. The
@@ -1356,7 +1591,7 @@ key=v1;v2;
Unless overridden with the --user or --installation options, this command
changes the default system-wide installation.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
Assume the URI is a .flatpakrepo file rather than the repository itself. This is enabled
@@ -1394,26 +1629,21 @@ key=v1;v2;
Import gpg keys from the specified keyring file as
trusted for the new remote. If the file is - the
keyring is read from standard input.
-
- This is a OCI format registry rather than a regular
- flatpak repository.
Print debug information during command processing.
Print OSTree debug information during command processing.
-
- Print version information and exit.
- flatpak-remote-delete — Delete a remote repository flatpak-remote-delete — Delete a remote repository
Removes a remote repository from the flatpak repository configuration.
NAME is the name of an existing remote.
@@ -1421,7 +1651,7 @@ key=v1;v2;
this command uses either the default system-wide installation or the
per-user one, depending on which has the specified
REMOTE .
- The following options are understood:
+ The following options are understood:
Show help options and exit.
Modify the per-user configuration.
@@ -1438,16 +1668,14 @@ key=v1;v2;
Print debug information during command processing.
Print OSTree debug information during command processing.
-
- Print version information and exit.
- flatpak-remote-info — Show information about an application or runtime in a remote flatpak-remote-info — Show information about an application or runtime in a remote
Shows information about the runtime or application REF from the
remote repository with the name REMOTE .
You can find all configured remote repositories with flatpak remotes.
@@ -1461,7 +1689,7 @@ key=v1;v2;
this command uses either the default system-wide installation or the
per-user one, depending on which has the specified
REMOTE .
- The following options are understood:
+ flatpak-remote-ls — Show available runtimes and applications flatpak-remote-ls — Show available runtimes and applications
Shows runtimes and applications that are available in the
remote repository with the name REMOTE ,
or all remotes if one isn't specified. You can find all configured
remote repositories with flatpak-remotes(1).
+
+ REMOTE can be a file:// URI pointing to a
+ local repository instead of a remote name.
Unless overridden with the --system, --user, or --installation options,
this command uses either the default system-wide installation or the
per-user one, depending on which has the specified
REMOTE .
- The following options are understood:
+ The following options are understood:
Show help options and exit.
Use the per-user configuration.
@@ -1541,7 +1772,7 @@ Runtime: org.gnome.Platform/x86_64/3.24
Show only applications, omit runtimes.
Show everything. By default locale and
debug extensions as well as secondary arches when the primary
- arch in available are hidden.
+ arch is available are hidden.
Show only those which have updates available.
@@ -1551,17 +1782,21 @@ Runtime: org.gnome.Platform/x86_64/3.24
Print debug information during command processing.
Print OSTree debug information during command processing.
-
- Print version information and exit.
-
$ flatpak --user remote-ls --app testrepo
flatpak-remote-modify — Modify a remote repository flatpak-remote-modify — Modify a remote repository
Modifies options for an existing remote repository in the flatpak repository configuration.
NAME is the name for the remote.
@@ -1569,7 +1804,7 @@ org.freedesktop.glxgears
this command uses either the default system-wide installation or the
per-user one, depending on which has the specified
REMOTE .
- The following options are understood:
+ The following options are understood:
Show help options and exit.
Modify the per-user configuration.
@@ -1608,12 +1843,15 @@ org.freedesktop.glxgears
A title for the remote, e.g. for display in a UI.
- A default branch to for the remote, mainly for use in a UI.
+ A default branch for the remote, mainly for use in a UI.
+
+ The globally unique identifier of the remote repository, to
+ allow mirrors to be grouped. This must only be set to the
+ collection ID provided by the remote, and must not be set if the
+ remote does not provide a collection ID.
Set a new URL.
- A default branch to for the remote, mainly for use in a UI.
-
Update the remote's extra metadata from the OSTree repository's summary
file. Only xa.title and xa.default-branch are supported at the moment.
@@ -1624,22 +1862,20 @@ org.freedesktop.glxgears
Print debug information during command processing.
Print OSTree debug information during command processing.
-
- Print version information and exit.
- flatpak-remotes — List remote repositories
Lists the known remote repositories, in priority order.
By default, both per-user and system-wide installations
are shown. Use the --user, --system or --installation
options to change this.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
Show the per-user configuration.
@@ -1658,19 +1894,51 @@ org.freedesktop.glxgears
Print debug information during command processing.
Print OSTree debug information during command processing.
-
- Print version information and exit.
- flatpak-repo — Show information about a local repository flatpak-repair — Repair a flatpak installation
+ Repair a flatpak installation by pruning and reinstalling invalid objects. The repair command does all of the following:
+
+ Scan all locally available refs, removing any that don't correspond to a deployed ref.
+
+ Verify each commit they point to, removing any invalid objects and noting any missing objects.
+
+ Remove any refs that had an invalid object, and any non-partial refs that had missing objects.
+
+ Prune all objects not referenced by a ref, which gets rid of any possibly invalid non-scanned objects.
+
+ Enumerate all deployed refs and re-install any that are not in the repo (or are partial for a non-subdir deploy).
+ The following options are understood:
+ Show help options and exit.
+
+ Repair per-user installation.
+
+ Repair system-wide installation.
+
+ Repair the system-wide installation
+ specified by NAME among those defined in
+
+ Print debug information during command processing.
+
+ Print OSTree debug information during command processing.
+ flatpak-repo — Show information about a local repository The following options are understood:
+ The following options are understood:
Show help options and exit.
Print general information about a local repository.
@@ -1678,12 +1946,16 @@ testrepo Test Repository http://209.132.179.91/repo/ no-gpg-verify
List the branches in a local repository.
Print metadata for a branch in the repository.
- flatpak-run — Run an application or open a shell in a runtime flatpak-run — Run an application or open a shell in a runtime
If REF names an installed application,
flatpak runs the application in a sandboxed environment. Extra
arguments are passed on to the application.
@@ -1703,12 +1975,12 @@ testrepo Test Repository http://209.132.179.91/repo/ no-gpg-verify
The remaining arguments are passed to the command that gets run in the sandboxed
environment. See the The following options are understood:
+ The following options are understood:
Show help options and exit.
Print debug information during command processing.
-
- Print version information and exit.
+
+ Print OSTree debug information during command processing.
The architecture to install for.
@@ -1738,12 +2010,12 @@ testrepo Test Repository http://209.132.179.91/repo/ no-gpg-verify
Expose a well known socket to the application. This overrides to
the Context section from the application metadata.
- SOCKET must be one of: x11, wayland, fallback-x11, pulseaudio, system-bus, session-bus.
+ SOCKET must be one of: x11, wayland, fallback-x11, pulseaudio, system-bus, session-bus, ssh-auth.
This option can be used multiple times.
Don't expose a well known socket to the application. This overrides to
the Context section from the application metadata.
- SOCKET must be one of: x11, wayland, fallback-x11, pulseaudio, system-bus, session-bus.
+ SOCKET must be one of: x11, wayland, fallback-x11, pulseaudio, system-bus, session-bus, ssh-auth.
This option can be used multiple times.
Expose a device to the application. This overrides to
@@ -1758,12 +2030,15 @@ testrepo Test Repository http://209.132.179.91/repo/ no-gpg-verify
Allow access to a specific feature. This overrides to
the Context section from the application metadata.
- FEATURE must be one of: devel, multiarch.
+ FEATURE must be one of: devel, multiarch, bluetooth.
This option can be used multiple times.
+
+ See flatpak-build-finish(1)
+ for the meaning of the various features.
Disallow access to a specific feature. This overrides to
the Context section from the application metadata.
- FEATURE must be one of: devel, multiarch.
+ FEATURE must be one of: devel, multiarch, bluetooth.
This option can be used multiple times.
Allow the application access to a subset of the filesystem.
@@ -1830,6 +2105,8 @@ key=v1;v2;
Log system bus traffic. This can be useful to see what access you need to allow in
your D-Bus policy.
+
+ Kill the entire sandbox when the launching process dies.
If this option is specified, the remaining arguments are scanned, and all arguments
that are enclosed between a pair of '@@' arguments are interpreted as file paths,
@@ -1837,22 +2114,22 @@ key=v1;v2;
resulting document path. Arguments between '@@u' and '@@' are considered uris,
and any file: uris are exported. The exports are non-persistent and with read and write
permissions for the application.
- flatpak-search — Search for applications and runtimes
Searches for applications and runtimes matching
TEXT . Note that this uses appstream data
that can be updated with flatpak-update(1).
The appstream data is updated automatically only if it's at least a day old.
- The following options are understood:
+ The following options are understood:
Only search through remotes in the per-user installation.
Only search through remotes in the default system-wide installation.
@@ -1865,23 +2142,25 @@ key=v1;v2;
Show help options and exit.
Print debug information during command processing.
- flatpak-uninstall — Uninstall an application or runtime
Uninstalls an application or runtime. REF is a reference to the
application or runtime to uninstall.
- Each REF arguments is a full or partial indentifier in the
+ Each REF argument is a full or partial indentifier in the
flatpak ref format, which looks like "(app|runtime)/ID/ARCH/BRANCH". All elements
except ID are optional and can be left out, including the slashes,
so most of the time you need only specify ID. Any part left out will be matched
against what is installed, and if there are multiple matches an error message
will list the alternatives.
- By default this looks for both installed apps and runtime
- with the given NAME , but you can
- limit this by using the --app or --runtime option.
+ By default this looks for both installed apps and runtimes with the given
+ REF , but you can limit this by using the --app
+ or --runtime option, or by supplying the initial element in the REF.
Normally, this command removes the ref for this application/runtime from the
- local OSTree repository and purges and objects that are no longer
+ local OSTree repository and purges any objects that are no longer
needed to free up disk space. If the same application is later
reinstalled, the objects will be pulled from the remote repository
again. The --keep-ref option can be used to prevent this.
@@ -1889,25 +2168,34 @@ key=v1;v2;
If all branches of the application/runtime are removed, this command
also purges the data directory for the application.
- Unless overridden with the --user or the --installation option, this command updates
- the default system-wide installation.
- The following options are understood:
+ Unless overridden with the --system, --user, or --installation
+ options, this command searches both the system-wide installation
+ and the per-user one for REF and errors
+ out if it exists in more than one.
+ The following options are understood:
Show help options and exit.
Keep the ref for the application and the objects belonging to it
in the local repository.
- Updates a per-user installation.
+ Uninstalls from a per-user installation.
- Updates the default system-wide installation.
+ Uninstalls from the default system-wide installation.
- Updates a system-wide installation specified by NAME
- among those defined in
The architecture to uninstall, instead of the architecture of
the host system.
+
+ Remove all refs on the system.
+
+ Remove unused refs on the system.
+
+ Automatically answer yes to all questions. This is useful for automation.
Only look for an app with the given name.
@@ -1920,16 +2208,14 @@ key=v1;v2;
Print debug information during command processing.
Print OSTree debug information during command processing.
-
- Print version information and exit.
- flatpak-update — Update an application or runtime flatpak-update — Update an application or runtime
Updates applications and runtimes. REF is a reference to the
application or runtime to update. If no REF is given, everything
is updated, as well as appstream info for all remotes.
- Each REF arguments is a full or partial indentifier in the
+ Each REF argument is a full or partial indentifier in the
flatpak ref format, which looks like "(app|runtime)/ID/ARCH/BRANCH". All elements
except ID are optional and can be left out, including the slashes,
so most of the time you need only specify ID. Any part left out will be matched
@@ -1943,6 +2229,12 @@ key=v1;v2;
Normally, this command updates the application to the tip
of its branch. But it is possible to check out another commit,
with the --commit option.
+
+ If the configured remote for a ref being updated has a collection ID configured on it,
+ flatpak will search mounted filesystems such as USB drives as well as Avahi services
+ advertised on the local network for the needed refs, in order to support
+ offline updates. See ostree-find-remotes(1)
+ for more information.
Note that updating a runtime is different from installing
a different branch, and runtime updates are expected to keep
@@ -1952,7 +2244,7 @@ key=v1;v2;
Unless overridden with the --user, --system or --installation option, this command updates
any matching refs in the standard system-wide installation and the per-user one.
- The following options are understood:
+ The following options are understood:
Show help options and exit.
Update a per-user installation.
@@ -1970,7 +2262,8 @@ key=v1;v2;
This can be added multiple times to install multiple subpaths.
If this is not specified the subpaths specified at install time are reused.
- Update to this commit, instead of the tip of the branch.
+ Update to this commit, instead of the tip of the branch. You can find commits
+ using flatpak remote-info --log REMOTE REF.
Download the latest version, but don't deploy it.
@@ -1993,15 +2286,13 @@ key=v1;v2;
Print debug information during command processing.
Print OSTree debug information during command processing.
-
- Print version information and exit.
- Table of Contents Table of Contents flatpak-flatpakrepo — Reference to a remote
Flatpak uses flatpakrepo files to share information about remotes.
The
The filename extension commonly used for flatpakrepo files is
The flatpakrepo file is using the same .ini file format that is used for
systemd unit files or application .desktop files.
-
+
All the information is contained in the [Flatpak Repo] group.
The following keys can be present in this group:
- The version of the file format, must be 1 if present. The url for the remote. This key is mandatory. The base64-encoded gpg key for the remote. The default branch to use for this remote. The title of the remote. This should be a user-friendly name that can be displayed e.g. in an app store. A short summary of the remote, for display e.g. in an app store. A longer description of the remote, for display e.g. in an app store.. The url for an icon that can be used to represent the remote. The url of a webpage describing the remote. The version of the file format, must be 1 if present. The url for the remote. This key is mandatory. The base64-encoded gpg key for the remote. The default branch to use for this remote. The title of the remote. This should be a user-friendly name that can be displayed e.g. in an app store. A short summary of the remote, for display e.g. in an app store. A longer description of the remote, for display e.g. in an app store.. The url for an icon that can be used to represent the remote. The url of a webpage describing the remote. 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. flatpak-flatpakref — Reference to a remote for an application or runtime
Flatpak uses flatpakref files to share information about a remote for
a single application. The
A flatpakref file can also refer to a remote for a runtime.
-
The flatpakref file is using the same .ini file format that is used for
systemd unit files or application .desktop files.
-
+
All the information is contained in the [Flatpak Ref] group.
The following keys can be present in this group:
- The version of the file format, must be 1 if present. The fully qualified name of the runtime that is used by the application. This key is mandatory. The url for the remote. This key is mandatory. The name of the branch from which to install the application or runtime. If this key is not specified, the "master" branch is used. The title of the application or runtime. This should be a user-friendly name that can be displayed e.g. in an app store. A short summary of the application or runtime, for display e.g. in an app store. A longer description of the application or runtime, for display e.g. in an app store.. The url for an icon that can be used to represent the application or runtime. The url of a webpage describing the application or runtime. Whether this file refers to a runtime. If this key is not specified, the file is assumed to refer to an application. The base64-encoded gpg key for the remote. The url for a .flatpakref file for the runtime. The version of the file format, must be 1 if present. The fully qualified name of the runtime that is used by the application. This key is mandatory. The url for the remote. This key is mandatory. The name of the branch from which to install the application or runtime. If this key is not specified, the "master" branch is used. The title of the application or runtime. This should be a user-friendly name that can be displayed e.g. in an app store. A short summary of the application or runtime, for display e.g. in an app store. A longer description of the application or runtime, for display e.g. in an app store.. The url for an icon that can be used to represent the application or runtime. The url of a webpage describing the application or runtime. 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. Whether this file refers to a runtime. If this key is not specified, the file is assumed to refer to an application. The base64-encoded gpg key for the remote. The url for a .flatpakref file for the runtime. flatpak-installation — Configuration for an installation location
flatpak can operate in system-wide or per-user mode. The system-wide data
is located in
The installation config file format is using the same .ini file format that is used
for systemd unit files or application .desktop files.
-
+
All the configuration for the the installation location with name NAME is contained
in the [Installation "NAME"] group.
The following keys are recognized:
- The path for this installation. This key is mandatory. The name to use when showing this installation in the UI. A priority for this installation. The type of storage used for this installation. Possible values include: network, mmc, sdcard, harddisk. The path for this installation. This key is mandatory. The name to use when showing this installation in the UI. A priority for this installation. The type of storage used for this installation. Possible values include: network, mmc, sdcard, harddisk. flatpak-metadata — Information about an application or runtime
Flatpak uses metadata files to describe applications and runtimes.
The
The metadata file is using the same .ini file format that is used for
systemd unit files or application .desktop files.
-
This group determines various system resources that may be shared
with the application when it is run in a flatpak sandbox.
@@ -2130,7 +2421,7 @@ StorageType=sdcard
Available since 0.3.
List of well-known sockets to make available in the sandbox.
- Possible sockets: x11, wayland, fallback-x11, pulseaudio, session-bus, system-bus.
+ Possible sockets: x11, wayland, fallback-x11, pulseaudio, session-bus, system-bus, ssh-auth.
When making a socket available, flatpak also sets
well-known environment variables like DISPLAY or
DBUS_SYSTEM_BUS_ADDRESS to let the application
@@ -2287,12 +2578,16 @@ StorageType=sdcard
example
+ Allow the application to use bluetooth (AF_BLUETOOTH) sockets.
+ Note, for bluetooth to fully work you must also have network access.
+ Available since 0.11.8.
A feature can be prefixed with
This group only appears in
If the
Entries in this group have the same form as for the [Session Bus Policy] group.
However, the app has no permissions by default.
-
The [Environment] group specifies environment variables to set
when running the application. Available since 0.3.
Entries in this group have the form
Runtimes and applications can define extension points, which allow
optional, additional runtimes to be mounted at a specified location
inside the sandbox when they are present on the system. Typical uses
for extension points include translations for applications, or debuginfo
for sdks. The name of the extension point is specified as part of the
- group heading.
+ group heading. Since 0.11.4, the name may optionally include a tag
+ in the NAME in the name@tag ref syntax if you wish to use different
+ configurations (eg, versions) of the same extension concurrently.
+ The "tag" is effectively ignored, but is necessary in order to allow
+ the same extension name to be specified more than once.
The relative path at which the extension will be mounted in
the sandbox. If the extension point is for an application, the
@@ -2411,6 +2710,12 @@ StorageType=sdcard
if the name of the active GL driver matches the extension point basename.
Available since 0.9.1, and backported to the 0.8.x
branch in 0.8.3.
+
+ A condition that must be false for the extension to be considered unused when
+ pruning. For example, flatpak uninstall --unused uses
+ this information. The only currently recognized value is active-gl-driver,
+ which is true if the name of the active GL driver matches the extension
+ point basename. Available since 0.11.8.
A condition that must be true for the extension to be enabled.
The only currently recognized value is active-gl-driver, which is true
@@ -2442,7 +2747,14 @@ StorageType=sdcard
Whether to automatically delete extensions matching this extension
point when deleting a 'related' application or runtime.
Available since 0.6.7.
-
+
+ The ID of the collection that this extension point belongs to. If this
+ is unspecified, it defaults to the collection ID of the application
+ or runtime that the extension point is for.
+ Currently, extension points must be in the same collection as the
+ application or runtime that they are for.
+ Available since 0.99.1.
+
This optional group may be present if the runtime is an extension.
The ref of the runtime or application that this extension
@@ -2451,7 +2763,10 @@ StorageType=sdcard
The priority to give this extension when looking for the
best match. Default is 0. Available since 0.9.1, and
backported to the 0.8.x branch in 0.8.3.
-
+
+ The tag name to use when searching for this extension's mount
+ point in the parent flatpak. Available since 0.11.4.
+
This optional group may be present if the runtime or application uses
extra data that gets downloaded separately. The data in this group
gets merged into the repository summary, with the xa.extra-data-sources
@@ -2475,14 +2790,14 @@ StorageType=sdcard
The sha256 sum for extra data source
Subsystems can define their own policies to be placed in a group
whose name has this form. Their values are treated as lists,
in which items can have their meaning negated by prepending !
to the value. They are not otherwise parsed by Flatpak.
Available since 0.6.13.
- flatpak-remote — Configuration for a remote
Flatpak stores information about configured remotes for an installation location in
System-wide remotes can be statically preconfigured by dropping
config fragments into
The remote config file format is using the same .ini file format that is used for systemd
unit files or application .desktop files.
-
+
All the configuration for the the remote with name NAME is contained in the
[remote "NAME"] group.
The following keys are recognized by OSTree, among others:
- The url for the remote. Whether to use GPG verification for content from this remote. Whether to use GPG verification for the summary of this remote.
+
+ The url for the remote. An URL of the form oci+https:// or oci+http://
+ is a Flatpak extension that indicates that the remote is not an ostree
+ repository, but is rather an URL to an index of OCI images that are stored
+ within a container image registry.
+ Whether to use GPG verification for content from this remote. Whether to use GPG verification for the summary of this remote. This is ignored if The globally unique identifier for the upstream collection repository, to allow mirrors to be grouped.
All flatpak-specific keys have a xa. prefix:
- Whether the remote is disabled. Defaults to false. The priority for the remote. This is used when listing remotes. Defaults to 1. Whether this remote should be used when presenting available contents. Defaults to true. Whether this remote should be used when searching for dependencies. Defaults to true. An optional title to use when presenting this remote in a UI. This key is set to true if The default branch to use when installing from this remote. This key is set to true if The main reference served by this remote. This is used for origin remotes of applications installed via a flatpakref file. Whether this is an OCI remote. Defaults to false. Whether the remote is disabled. Defaults to false. The priority for the remote. This is used when listing remotes. Defaults to 1. Whether this remote should be used when presenting available contents. Defaults to true. Whether this remote should be used when searching for dependencies. Defaults to true. An optional title to use when presenting this remote in a UI. This key is set to true if The default branch to use when installing from this remote. This key is set to true if The main reference served by this remote. This is used for origin remotes of applications installed via a flatpakref file. Creates a new bundle ref for the given file. file a GFile error return location for an error. Get the file this bundle is stored in. Get the metadata for the app/runtime Get the compressed appstream for the app/runtime Get the icon png data for the app/runtime Get the origin url stored in the bundle Returns the installed size for the bundle.Important
Name
Synopsis
flatpak
[OPTION...] {COMMAND}Description
Name
Synopsis
flatpak
[OPTION...] {COMMAND}Description
Options
-h
, --help
Options
-h
, --help
-v
, --verbose
--gl-drivers
Commands
File formats
Environment
XDG_DATA_DIRS
and
XDG_DATA_HOME
, flatpak is consulting some of its own.
FLATPAK_USER_DIR
/etc/flatpak
is used (unless overridden at build
time by --sysconfdir).
- Name
Synopsis
flatpak build-bundle
[OPTION...] LOCATION FILENAME NAME [BRANCH]Description
Options
-h
, --help
Options
-h
, --help
--runtime
-v
, --verbose
--version
Examples
See also
Name
Synopsis
flatpak build-commit-from
[OPTION...] DST-REPO DST-REF... Name
Synopsis
flatpak build-commit-from
[OPTION...] DST-REPO DST-REF... Description
Options
-h
, --help
Options
-h
, --help
--src-repo=SRC-REPO
--force
--disable-fsync
--gpg-sign=KEYID
--ostree-verbose
--version
Examples
See also
Name
Synopsis
flatpak build-export
[OPTION...] LOCATION DIRECTORY [BRANCH]Name
Synopsis
flatpak build-export
[OPTION...] LOCATION DIRECTORY [BRANCH]Description
files/
and export/
subdirectories and the metadata
file are included
in the commit, anything else is ignored.
+ --collection-id=COLLECTION-ID
should be specified
+ as a globally unique reverse DNS value to identify the collection of
+ flatpaks this will be added to. Setting a globally unique collection
+ ID allows the apps in the repository to be shared over peer to peer
+ systems without needing further configuration.
Options
-h
, --help
Options
-h
, --help
-s
, --subject=SUBJECT
-b
, --body=BODY
--collection-id=COLLECTION-ID
--arch=ARCH
--exclude=PATTERN
files
directory.
--timestamp=DATE
--update-appstream
is used, the appstream data.
+ --disable-fsync
--update-appstream
--no-update-summary
--ostree-verbose
--version
Examples
Commit: 9d0044ea480297114d03aec85c3d7ae3779438f9d2cb69d717fb54237acacb8c
@@ -316,7 +361,7 @@ Metadata Written: 5
Content Total: 1174
Content Written: 1
Content Bytes Written: 305
-
See also
Name
Synopsis
flatpak build-finish
[OPTION...] DIRECTORY Name
Synopsis
flatpak build-finish
[OPTION...] DIRECTORY Description
Options
-h
, --help
Options
-h
, --help
--command=COMMAND
--socket=SOCKET
--nosocket=SOCKET
--device=DEVICE
--allow=FEATURE
devel
feature allows the application to
@@ -393,10 +438,14 @@ Content Bytes Written: 305
natively by the system. For example, for the x86_64
architecture, 32-bit x86
binaries will be allowed as
well.
+ bluetooth
feature allows the application to
+ use bluetooth (AF_BLUETOOTH) sockets. Note, for bluetooth to
+ fully work you must also have network access.
--disallow=FEATURE
--filesystem=FS
--extension=NAME=VARIABLE[=VALUE]
VARIABLE
and VALUE
.
+ --remove-extension=NAME
--extension-priority=VALUE
--ostree-verbose
--version
Examples
Exporting share/applications/gnome-calculator.desktop
@@ -491,17 +544,17 @@ Exporting share/dbus-1/services/org.gnome.Calculator.SearchProvider.service
More than one executable
Using gcalccmd as command
Please review the exported files and the metadata
-
Name
Synopsis
flatpak build-import-bundle
[OPTION...] LOCATION FILENAME Name
Synopsis
flatpak build-import-bundle
[OPTION...] LOCATION FILENAME Description
Options
-h
, --help
Options
-h
, --help
-v
, --verbose
--gpg-homedir=PATH
--version
Name
Synopsis
flatpak build-init
[OPTION...] DIRECTORY APPNAME SDK RUNTIME [BRANCH]Name
Synopsis
flatpak build-init
[OPTION...] DIRECTORY APPNAME SDK RUNTIME [BRANCH]Description
Options
-h
, --help
Options
-h
, --help
--arch=ARCH
--sdk-extension=EXTENSION
--extension=NAME=VARIABLE[=VALUE]
--sdk-dir
usr
for --writable-sdk.
--update
--extension-tag=EXTENSION_TAG
--verbose
--version
Name
Synopsis
flatpak build-sign
[OPTION...] LOCATION ID [BRANCH]Name
Synopsis
flatpak build-sign
[OPTION...] LOCATION ID [BRANCH]Description
Options
-h
, --help
Options
-h
, --help
--gpg-sign=KEYID
--ostree-verbose
--version
Name
Synopsis
flatpak build-update-repo
[OPTION...] LOCATION Name
Synopsis
flatpak build-update-repo
[OPTION...] LOCATION Description
Options
-h
, --help
Options
-h
, --help
--redirect-url=URL
--gpg-import=FILE
--collection-id=COLLECTION-ID
--deploy-collection-id
--collection-id
+ in the static remote configuration for all clients. This is
+ irrevocable once published in a repository. Use it to decide
+ when to roll out a collection ID to users of an existing repository.
+ If constructing a new repository which has a collection ID,
+ you should typically always pass this option.
--gpg-sign=KEYID
--ostree-verbose
--version
Name
Synopsis
flatpak build
[OPTION...] DIRECTORY [COMMAND [ARG...]]Name
Synopsis
flatpak build
[OPTION...] DIRECTORY [COMMAND [ARG...]]Description
/app
and /var
,
respectively. They are writable, and their contents are preserved between
build commands, to allow accumulating build artifacts there.
- Options
-h
, --help
Options
-h
, --help
-v
, --verbose
--ostree-verbose
-r
, --runtime
-p
, --die-with-parent
--socket=SOCKET
--nosocket=SOCKET
--device=DEVICE
--allow=FEATURE
devel
feature allows the application to
- access certain syscalls such as ptrace()
, and
- perf_event_open()
.
- multiarch
feature allows the application to
- execute programs compiled for an ABI other than the one supported
- natively by the system. For example, for the x86_64
- architecture, 32-bit x86
binaries will be allowed as
- well.
+ --disallow=FEATURE
--filesystem=FILESYSTEM[:ro|:create]
--log-system-bus
Name
Synopsis
flatpak config
[OPTION...] KEY VALUE Options
-h
, --help
Name
Synopsis
flatpak create-usb
[OPTION...] MOUNT-PATH REF... Description
.ostree/repo
+ as the destination directory under MOUNT-PATH but if you
+ specify another location using --destination-repo
+ a symbolic link will be created for you in .ostree/repos.d
.
+ This ensures that either way the repository will be found by flatpak (and other
+ consumers of libostree) for install/update operations.
+ Options
-h
, --help
--user
--system
--installation=NAME
/etc/flatpak/installations.d/
. Using
+ --installation=default is
+ equivalent to using --system .
+ --app
--runtime
--destination-repo
=DEST-v
, --verbose
--ostree-verbose
Name
Synopsis
flatpak document-export
[OPTION...] FILE Name
Synopsis
flatpak document-export
[OPTION...] FILE Description
Options
-h
, --help
Options
-h
, --help
-u
, --unique
-v
, --verbose
--version
Name
Synopsis
flatpak document-info
[OPTION...] FILE Name
Synopsis
flatpak document-info
[OPTION...] FILE Description
Options
-h
, --help
Name
Synopsis
flatpak document-list
[OPTION...] [APPID]Description
Name
Synopsis
flatpak document-export
[OPTION...] FILE Name
Synopsis
flatpak document-unexport
[OPTION...] FILE Description
Name
Synopsis
flatpak enter
[OPTION...] MONITORPID COMMAND [ARG...]Name
Synopsis
flatpak permission-remove
[OPTION...] TABLE ID Description
Options
-h
, --help
-v
, --verbose
--ostree-verbose
See also
Name
Synopsis
flatpak permission-list
[OPTION...] [TABLE] [ID]Description
Options
-h
, --help
-v
, --verbose
--ostree-verbose
See also
Name
Synopsis
flatpak permission-show
[OPTION...] APP_ID Description
Options
-h
, --help
-v
, --verbose
--ostree-verbose
See also
Name
Synopsis
flatpak permission-reset
[OPTION...] APP_ID Description
Options
-h
, --help
-v
, --verbose
--ostree-verbose
See also
Name
Synopsis
flatpak enter
[OPTION...] MONITORPID COMMAND [ARG...]Description
Name
Synopsis
flatpak info
[OPTION...] NAME [BRANCH]Name
Synopsis
flatpak info
[OPTION...] NAME [BRANCH]Description
Options
-h
, --help
Options
-h
, --help
--user
-m
, --show-metadata
--show-runtime
--show-sdk
-M
, --show-permissions
--file-access=PATH
-e
, --show-extensions
-v
, --verbose
--version
Name
Synopsis
flatpak install
[OPTION...] REMOTE-NAME REF... flatpak install
[OPTION...] [--from] LOCATION flatpak install
[OPTION...] [--bundle] FILENAME Name
Synopsis
flatpak install
[OPTION...] REMOTE-NAME REF... flatpak install
[OPTION...] [--from] LOCATION flatpak install
[OPTION...] [--bundle] FILENAME Description
Options
-h
, --help
Options
-h
, --help
--bundle
--from
--reinstall
--user
--system
--ostree-verbose
--version
Name
Synopsis
flatpak list
[OPTION...]Description
Options
-h
, --help
Options
-h
, --help
--user
--ostree-verbose
--version
Name
Synopsis
flatpak make-current
[OPTION...] APP BRANCH Name
Synopsis
flatpak make-current
[OPTION...] APP BRANCH Description
Options
-h
, --help
Options
-h
, --help
--user
-v
, --verbose
--version
Name
Synopsis
flatpak override
[OPTION...] [APP]Description
Options
-h
, --help
Options
-h
, --help
--user
--socket=SOCKET
--nosocket=SOCKET
--device=DEVICE
--allow=FEATURE
devel
feature allows the application to
- access certain syscalls such as ptrace()
, and
- perf_event_open()
.
- multiarch
feature allows the application to
- execute programs compiled for an ABI other than the one supported
- natively by the system. For example, for the x86_64
- architecture, 32-bit x86
binaries will be allowed as
- well.
+ See flatpak-build-finish(1)
+ for the meaning of the various features.
--disallow=FEATURE
--filesystem=FS
-v
, --verbose
--version
Name
Synopsis
flatpak remote-add
[OPTION...] [--from] NAME LOCATION flatpak remote-add
[OPTION...] NAME LOCATION Name
Synopsis
flatpak remote-add
[OPTION...] [--from] NAME LOCATION flatpak remote-add
[OPTION...] NAME LOCATION Description
Options
-h
, --help
Options
-h
, --help
--from
--oci
-v
, --verbose
--ostree-verbose
--version
Name
Synopsis
flatpak remote-delete
[OPTION...] NAME Name
Synopsis
flatpak remote-delete
[OPTION...] NAME Description
Options
-h
, --help
Options
-h
, --help
--user
--ostree-verbose
--version
Name
Synopsis
flatpak remote-info
[OPTION...] REMOTE REF Name
Synopsis
flatpak remote-info
[OPTION...] REMOTE REF Description
Options
-h
, --help
Name
Synopsis
flatpak remote-ls
[OPTION...] [REMOTE]Name
Synopsis
flatpak remote-ls
[OPTION...] [REMOTE]Description
Options
-h
, --help
Options
-h
, --help
--user
--all
, -a
--updates
--arch=ARCH
--ostree-verbose
--version
Examples
+Ref
org.gnome.Builder
org.freedesktop.glxgears
-
Name
Synopsis
flatpak remote-modify
[OPTION...] NAME Name
Synopsis
flatpak remote-modify
[OPTION...] NAME Description
Options
-h
, --help
Options
-h
, --help
--user
--title=TITLE
--default-branch=BRANCH
--collection-id=COLLECTION-ID
--url=URL
--update-metadata
--gpg-import=FILE
--ostree-verbose
--version
Name
Synopsis
flatpak remotes
[OPTION...]Description
Options
-h
, --help
Options
-h
, --help
--user
--ostree-verbose
--version
Name
Synopsis
flatpak repo
[OPTION...] LOCATION Name
Synopsis
flatpak repair
[OPTION...]Description
Options
-h
, --help
--user
--system
--installation=NAME
/etc/flatpak/installations.d/
. Using
+ --installation=default is equivalent to using
+ --system .
+ -v
, --verbose
--ostree-verbose
Name
Synopsis
flatpak repo
[OPTION...] LOCATION Options
-h
, --help
Options
-h
, --help
--info
--metadata=BRANCH
Name
Synopsis
flatpak run
[OPTION...] REF [ARG...]Name
Synopsis
flatpak run
[OPTION...] REF [ARG...]Description
--file-forwarding
for handling of file arguments.
- Options
-h
, --help
Options
-h
, --help
-v
, --verbose
--version
--ostree-verbose
--arch=ARCH
--command=COMMAND
--socket=SOCKET
--nosocket=SOCKET
--device=DEVICE
--allow=FEATURE
--disallow=FEATURE
--filesystem=FS
--log-system-bus
-p
, --die-with-parent
--file-forwarding
Name
Synopsis
flatpak search
TEXT Description
Options
--user
Options
--user
--system
-v
, --verbose
Name
Synopsis
flatpak uninstall
[OPTION...] [REF...]Description
Options
-h
, --help
Options
-h
, --help
--keep-ref
--user
--system
--installation=NAME
/etc/flatpak/installations.d/
.
- Using --installation=default is equivalent to using
- --system .
+ Uninstalls from a system-wide installation specified by
+ NAME among those defined in
+ /etc/flatpak/installations.d/
. Using
+ --installation=default is
+ equivalent to using --system .
--arch=ARCH
--all
--unused
-y
, --assumeyes
--app
--runtime
--ostree-verbose
--version
Name
Synopsis
flatpak update
[OPTION...] [REF...]flatpak update
[OPTION...] --appstream [REMOTE]Name
Synopsis
flatpak update
[OPTION...] [REF...]flatpak update
[OPTION...] --appstream [REMOTE]Description
Options
-h
, --help
Options
-h
, --help
--user
--commit=COMMIT
--no-deploy
--no-pull
--ostree-verbose
--version
Name
Description
flatpakrepo
file contains enough information
to add the remote. Use the flatpak remote-add --from
@@ -2011,24 +2302,24 @@ key=v1;v2;
when displaying a remote to the user, e.g. in an app store.
.flatpakrepo
.
- File format
[Flatpak Repo]
[Flatpak Repo]
Version
(uint64)Url
(string)GPGKey
(string)DefaultBranch
(string)Title
(string)Comment
(string)Description
(string)Icon
(string)Homepage
(string)Example
+
Version
(uint64)Url
(string)GPGKey
(string)DefaultBranch
(string)Title
(string)Comment
(string)Description
(string)Icon
(string)Homepage
(string)CollectionID
(string)Example
[Flatpak Repo]
Title=GEdit
Url=http://sdk.gnome.org/repo-apps/
GPGKey=mQENBFUUCGcBCAC/K9WeV4xCaKr3NKRqPXeY5mpaXAJyasLqCtrDx92WUgbu0voWrhohNAKpqizod2dvzc/XTxm3rHyIxmNfdhz1gaGhynU75Qw4aJVcly2eghTIl++gfDtOvrOZo/VuAq30f32dMIgHQdRwEpgCwz7WyjpqZYltPAEcCNL4MTChAfiHJeeiQ5ibystNBW8W6Ymf7sO4m4g5+/aOxI54oCOzD9TwBAe+yXcJJWtc2rAhMCjtyPJzxd0ZVXqIzCe1xRvJ6Rq7YCiMbiM2DQFWXKnmYQbj4TGNMnwNdAajCdrcBWEMSbzq7EzuThIJRd8Ky4BkEe1St6tuqwFaMZz+F9eXABEBAAG0KEdub21lIFNESyAzLjE2IDxnbm9tZS1vcy1saXN0QGdub21lLm9yZz6JATgEEwECACIFAlUUCGcCGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEArkz6VV0VKBa5cH/0vXa31YgEjNk78gGFXqnQxdD1WYA87OYxDi189l4lA802EFTF4wCBuZyDOqdd5BhS3Ab0cR778DmZXRUP2gwe+1zTJypU2JMnDpkwJ4NK1VP6/tE4SAPrznBtmb76BKaWBqUfZ9Wq1zg3ugvqkZB/Exq+usypIOwQVp1KL58TrjBRda0HvRctzkNhr0qYAtkfLFe0GvksBp4vBm8uGwAx7fw/HbhIjQ9pekTwvB+5GwDPO/tSip/1bQfCS+XJB8Ffa04HYPLGedalnWBrwhYY+G/kn5Zh9L/AC8xeLwTJTHM212rBjPa9CWs9C6a57MSaeGIEHLC1hEyiJJ15w8jmY=
-
-
Name
Description
flatpakref
file contains
enough information to add the remote and install the application.
@@ -2040,14 +2331,14 @@ GPGKey=mQENBFUUCGcBCAC/K9WeV4xCaKr3NKRqPXeY5mpaXAJyasLqCtrDx92WUgbu0voWrhohNAKpq
The filename extension commonly used for flatpakref files is .flatpakref
.
File format
[Flatpak Ref]
[Flatpak Ref]
Version
(uint64)Name
(string)Url
(string)Branch
(string)Title
(string)Comment
(string)Description
(string)Icon
(string)Homepage
(string)IsRuntime
(boolean)GPGKey
(string)RuntimeRepo
(string)Example
+
Version
(uint64)Name
(string)Url
(string)Branch
(string)Title
(string)Comment
(string)Description
(string)Icon
(string)Homepage
(string)CollectionID
(string)IsRuntime
(boolean)GPGKey
(string)RuntimeRepo
(string)Example
[Flatpak Ref]
Title=GEdit
Name=org.gnome.gedit
@@ -2055,11 +2346,11 @@ Branch=stable
Url=http://sdk.gnome.org/repo-apps/
IsRuntime=False
GPGKey=mQENBFUUCGcBCAC/K9WeV4xCaKr3NKRqPXeY5mpaXAJyasLqCtrDx92WUgbu0voWrhohNAKpqizod2dvzc/XTxm3rHyIxmNfdhz1gaGhynU75Qw4aJVcly2eghTIl++gfDtOvrOZo/VuAq30f32dMIgHQdRwEpgCwz7WyjpqZYltPAEcCNL4MTChAfiHJeeiQ5ibystNBW8W6Ymf7sO4m4g5+/aOxI54oCOzD9TwBAe+yXcJJWtc2rAhMCjtyPJzxd0ZVXqIzCe1xRvJ6Rq7YCiMbiM2DQFWXKnmYQbj4TGNMnwNdAajCdrcBWEMSbzq7EzuThIJRd8Ky4BkEe1St6tuqwFaMZz+F9eXABEBAAG0KEdub21lIFNESyAzLjE2IDxnbm9tZS1vcy1saXN0QGdub21lLm9yZz6JATgEEwECACIFAlUUCGcCGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEArkz6VV0VKBa5cH/0vXa31YgEjNk78gGFXqnQxdD1WYA87OYxDi189l4lA802EFTF4wCBuZyDOqdd5BhS3Ab0cR778DmZXRUP2gwe+1zTJypU2JMnDpkwJ4NK1VP6/tE4SAPrznBtmb76BKaWBqUfZ9Wq1zg3ugvqkZB/Exq+usypIOwQVp1KL58TrjBRda0HvRctzkNhr0qYAtkfLFe0GvksBp4vBm8uGwAx7fw/HbhIjQ9pekTwvB+5GwDPO/tSip/1bQfCS+XJB8Ffa04HYPLGedalnWBrwhYY+G/kn5Zh9L/AC8xeLwTJTHM212rBjPa9CWs9C6a57MSaeGIEHLC1hEyiJJ15w8jmY=
-
Name
Description
$prefix/var/lib/flatpak/
, and the per-user data is in
$HOME/.local/share/flatpak/
.
@@ -2067,20 +2358,20 @@ GPGKey=mQENBFUUCGcBCAC/K9WeV4xCaKr3NKRqPXeY5mpaXAJyasLqCtrDx92WUgbu0voWrhohNAKpq
In addition to the default installation locations, more system-wide installations
can be defined via configuration files /etc/flatpak/installations.d/
,
which must have the .conf extension and follow the format described below.
- File format
[Installation …]
[Installation …]
Path
(string)DisplayName
(string)Priority
(integer)StorageType
(string)Examples
+
Path
(string)DisplayName
(string)Priority
(integer)StorageType
(string)Name
Description
metadata
file for a deployed application or
runtime is placed in the toplevel deploy directory. For example, the
@@ -2097,10 +2388,10 @@ StorageType=sdcard
For compatibility with older Flatpak versions,
/run/user/$UID/flatpak-info
is a symbolic
link to the same file.
- File format
[Context]
sockets
(list)i386
binaries in an
x86_64
environment.
Available since 0.6.12.
+ bluetooth
!
to
indicate the absence of that feature, for example
!devel
if development and debugging
are not allowed.
- [Instance]
/.flatpak-info
for a running app, and not in the metadata files written by
application authors. It is filled in by Flatpak itself.
@@ -2321,7 +2616,7 @@ StorageType=sdcard
directly (either it goes via a proxy, or it cannot
access the system bus at all). Available since 0.8.0.
- [System Bus Policy]
sockets
key is not allowing full access
to the D-Bus system bus, then flatpak does not make the system
bus available unless the [System Bus Policy] group is present
@@ -2367,20 +2662,24 @@ StorageType=sdcard
[Environment]
VAR=VALUE
where VAR
is the name of an environment variable
to set.
- [Extension NAME]
directory
(string)autoprune-unless
(string)enable-if
(string)[ExtensionOf]
collection-id
(string)[ExtensionOf]
ref
(string)[Extra Data]
tag
(string)[Extra Data]
checksum
(string)X
X
. Available since 0.6.13.
- [Policy SUBSYSTEM]
Example
[Application]
name=org.gnome.Calculator
runtime=org.gnome.Platform/x86_64/3.20
@@ -2506,11 +2821,11 @@ subdirectories=true
[Extension org.gnome.Calculator.Debug]
directory=lib/debug
-
Name
Description
$installation/repo/config
. For example, the remotes for the
default system-wide installation are in
@@ -2522,23 +2837,34 @@ directory=lib/debug
/etc/flatpak/remotes.d/
.
- File format
[remote …]
[remote …]
url
(string)gpg-verify
(boolean)gpg-verify-summary
(boolean)url
(string)gpg-verify
(boolean)gpg-verify-summary
(boolean)collection-id
is set, as refs are verified in commit metadata in that case. Enabling gpg-verify-summary
would break peer to peer distribution of refs.collection-id
(string)xa.disable
(boolean)xa.prio
(integer)xa.noenumerate
(boolean)xa.nodeps
(boolean)xa.title
(string)xa.title-is-set
(boolean)xa.title
has been explicitly set.xa.default-branch
(string)xa.default-branch-is-set
(boolean)xa.default-branch
has been explicitly set.xa.main-ref
(string)xa.oci
(boolean)Examples
+
xa.disable
(boolean)xa.prio
(integer)xa.noenumerate
(boolean)xa.nodeps
(boolean)xa.title
(string)xa.title-is-set
(boolean)xa.title
has been explicitly set.xa.default-branch
(string)xa.default-branch-is-set
(boolean)xa.default-branch
has been explicitly set.xa.main-ref
(string)Examples
[remote "gnome-nightly-apps"]
gpg-verify=true
gpg-verify-summary=true
-
url=https://sdk.gnome.org/nightly/repo-apps/
xa.title=GNOME Applications
-
+
+
+Top
+
+
+
+
+
+ Functions
+
+
+
+
+FlatpakBundleRef *
+
+
+flatpak_bundle_ref_new ()
+
+
+
+
+GFile *
+
+
+flatpak_bundle_ref_get_file ()
+
+
+
+
+GBytes *
+
+
+flatpak_bundle_ref_get_metadata ()
+
+
+
+
+GBytes *
+
+
+flatpak_bundle_ref_get_appstream ()
+
+
+
+
+GBytes *
+
+
+flatpak_bundle_ref_get_icon ()
+
+
+
+
+char *
+
+
+flatpak_bundle_ref_get_origin ()
+
+
+
+
+guint64
+
+
+flatpak_bundle_ref_get_installed_size ()
+
+
+
+
+
+char *
+
+
+flatpak_bundle_ref_get_runtime_repo_url ()
+
+Functions
+flatpak_bundle_ref_new ()
+FlatpakBundleRef *
+flatpak_bundle_ref_new (
+GFile *file
,
+ GError **error
);Parameters
+
+
+
+
+
+
+
+
+
+
+
+[allow-none]
+
+flatpak_bundle_ref_get_file ()
+GFile *
+flatpak_bundle_ref_get_file (
+FlatpakBundleRef *self
);
+flatpak_bundle_ref_get_metadata ()
+GBytes *
+flatpak_bundle_ref_get_metadata (
+FlatpakBundleRef *self
);
+flatpak_bundle_ref_get_appstream ()
+GBytes *
+flatpak_bundle_ref_get_appstream (
+FlatpakBundleRef *self
);
+flatpak_bundle_ref_get_icon ()
+GBytes *
+flatpak_bundle_ref_get_icon (
+FlatpakBundleRef *self
,
+ int size
);
+flatpak_bundle_ref_get_origin ()
+char *
+flatpak_bundle_ref_get_origin (
+FlatpakBundleRef *self
);
+flatpak_bundle_ref_get_installed_size ()
+guint64
+flatpak_bundle_ref_get_installed_size (
+FlatpakBundleRef *self
);
+flatpak_bundle_ref_get_runtime_repo_url ()
+char *
+flatpak_bundle_ref_get_runtime_repo_url
+ (
+FlatpakBundleRef *self
);
-
+
-gboolean
+gboolean
flatpak_installation_get_is_user ()
@@ -82,7 +82,7 @@
-GFile *
+GFile *
flatpak_installation_get_path ()
@@ -90,7 +90,7 @@
-GFileMonitor *
+GFileMonitor *
flatpak_installation_create_monitor ()
@@ -130,7 +130,7 @@
-gboolean
+gboolean
flatpak_installation_uninstall ()
@@ -138,7 +138,15 @@
+
-gboolean
+gboolean
+
+
+flatpak_installation_uninstall_full ()
+
+
+
+gboolean
flatpak_installation_launch ()
@@ -176,7 +184,7 @@
-gint
+gint
flatpak_installation_get_priority ()
@@ -192,7 +200,7 @@
-GPtrArray *
+GPtrArray *
flatpak_installation_list_installed_refs ()
@@ -200,7 +208,7 @@
-GPtrArray *
+GPtrArray *
flatpak_installation_list_installed_refs_by_kind ()
@@ -208,7 +216,7 @@
-GPtrArray *
+GPtrArray *
flatpak_installation_list_installed_refs_for_update ()
@@ -216,7 +224,7 @@
-GPtrArray *
+GPtrArray *
flatpak_installation_list_installed_related_refs_sync ()
@@ -224,7 +232,7 @@
-GPtrArray *
+GPtrArray *
flatpak_installation_list_remote_refs_sync ()
@@ -232,7 +240,15 @@
+
-GPtrArray *
+GPtrArray *
+
+
+flatpak_installation_list_remotes_by_type ()
+
+
+
+GPtrArray *
flatpak_installation_list_remote_related_refs_sync ()
@@ -240,7 +256,7 @@
-GPtrArray *
+GPtrArray *
flatpak_installation_list_remotes ()
@@ -256,7 +272,7 @@
-GBytes *
+GBytes *
flatpak_installation_fetch_remote_metadata_sync ()
@@ -272,7 +288,7 @@
-gboolean
+gboolean
flatpak_installation_fetch_remote_size_sync ()
@@ -288,7 +304,7 @@
-gboolean
+gboolean
flatpak_installation_update_appstream_sync ()
@@ -312,7 +328,7 @@
-gboolean
+gboolean
flatpak_installation_drop_caches ()
@@ -320,7 +336,7 @@
-gboolean
+gboolean
flatpak_installation_modify_remote ()
@@ -328,7 +344,7 @@
-gboolean
+gboolean
flatpak_installation_remove_remote ()
@@ -336,7 +352,7 @@
-gboolean
+gboolean
flatpak_installation_update_remote_sync ()
@@ -344,7 +360,7 @@
-gboolean
+gboolean
flatpak_installation_cleanup_local_refs_sync ()
@@ -360,7 +376,7 @@
-gboolean
+gboolean
flatpak_installation_prune_local_repo ()
@@ -368,7 +384,7 @@
-gboolean
+gboolean
flatpak_installation_remove_local_ref_sync ()
@@ -376,7 +392,7 @@
-gboolean
+gboolean
flatpak_installation_set_config_sync ()
@@ -384,7 +400,7 @@
-gboolean
+gboolean
flatpak_installation_update_appstream_full_sync ()
@@ -406,7 +422,7 @@
-GPtrArray *
+GPtrArray *
flatpak_get_system_installations ()
@@ -445,6 +461,10 @@
+enum
+FlatpakUninstallFlags
+
+
@@ -452,7 +472,7 @@
enum
FlatpakStorageType
FlatpakInstallation can list configured remotes as well as installed application and runtime references (in short: refs). It can also run, install, update and -uninstall applications and runtimes.
+uninstall applications and runtimes, using FlatpakTransaction.FlatpakInstallation * -flatpak_installation_new_system (+flatpak_installation_new_system (GCancellable *cancellable
, -GError **error
);
GCancellable *cancellable
,
+ GError **error
);
Creates a new FlatpakInstallation for the system-wide installation.
cancellable
-a GCancellable.
+a GCancellable.
[nullable]
error
-return location for a GError
+return location for a GError
@@ -509,8 +529,8 @@ flatpak_installation_new_system (
FlatpakInstallation *
flatpak_installation_new_system_with_id
(const char *id
,
- GCancellable *cancellable
,
- GError **error
);
+ GCancellable *cancellable
,
+ GError **error
);
Creates a new FlatpakInstallation for the system-wide installation id
.
@@ -529,12 +549,12 @@ flatpak_installation_new_system_with_id
cancellable
-a GCancellable.
+a GCancellable.
[nullable]
error
-return location for a GError
+return location for a GError
@@ -551,8 +571,8 @@ flatpak_installation_new_system_with_id
flatpak_installation_new_user ()
FlatpakInstallation *
-flatpak_installation_new_user (GCancellable *cancellable
,
- GError **error
);
+flatpak_installation_new_user (GCancellable *cancellable
,
+ GError **error
);
Creates a new FlatpakInstallation for the per-user installation.
Parameters
@@ -565,12 +585,12 @@ flatpak_installation_new_user (GC
cancellable
-a GCancellable.
+a GCancellable.
[nullable]
error
-return location for a GError
+return location for a GError
@@ -586,10 +606,10 @@ flatpak_installation_new_user (GC
flatpak_installation_new_for_path ()
FlatpakInstallation *
-flatpak_installation_new_for_path (GFile *path
,
- gboolean user
,
- GCancellable *cancellable
,
- GError **error
);
+flatpak_installation_new_for_path (GFile *path
,
+ gboolean user
,
+ GCancellable *cancellable
,
+ GError **error
);
Creates a new FlatpakInstallation for the installation at the given path
.
@@ -603,7 +623,7 @@ flatpak_installation_new_for_path (path
-a GFile
+a GFile
@@ -613,12 +633,12 @@ flatpak_installation_new_for_path (cancellable
-a GCancellable.
+a GCancellable.
[nullable]
error
-return location for a GError
+return location for a GError
@@ -633,7 +653,7 @@ flatpak_installation_new_for_path (
flatpak_installation_get_is_user ()
-gboolean
+gboolean
flatpak_installation_get_is_user (FlatpakInstallation *self
);
Returns whether the installation is for a user-specific location.
flatpak_installation_get_path ()
-GFile *
+GFile *
flatpak_installation_get_path (FlatpakInstallation *self
);
Returns the installation location for self
.
@@ -681,19 +701,19 @@ flatpak_installation_get_path (
flatpak_installation_create_monitor ()
-GFileMonitor *
+GFileMonitor *
flatpak_installation_create_monitor (FlatpakInstallation *self
,
- GCancellable *cancellable
,
- GError **error
);
+ GCancellable *cancellable
,
+ GError **error
);
Gets monitor object for the installation. The returned file monitor will
-emit the “changed” signal whenever an application or runtime
+emit the “changed” signal whenever an application or runtime
was installed, uninstalled or updated.
Parameters
@@ -711,12 +731,12 @@ was installed, uninstalled or updated.
cancellable
-a GCancellable.
+a GCancellable.
[nullable]
error
-return location for a GError
+return location for a GError
@@ -724,7 +744,7 @@ was installed, uninstalled or updated.
Returns
-a new GFileMonitor instance, or NULL
on error.
+a new GFileMonitor instance, or NULL
on error.
[transfer full]
@@ -739,9 +759,9 @@ flatpak_installation_install (const char *arch
,
const char *branch
,
FlatpakProgressCallback progress
,
- gpointer progress_data
,
- GCancellable *cancellable
,
- GError **error
);
+ gpointer progress_data
,
+ GCancellable *cancellable
,
+ GError **error
);
Install a new application or runtime.
Note that this function was originally written to always return a
FlatpakInstalledRef. Since 0.9.13, passing
@@ -802,12 +822,12 @@ accordingly.
cancellable
-a GCancellable.
+a GCancellable.
[nullable]
error
-return location for a GError
+return location for a GError
@@ -815,7 +835,7 @@ accordingly.
Returns
-The ref for the newly installed app or NULL
on failure.
+The ref for the newly installed app or NULL
on failure.
[transfer full]
@@ -832,9 +852,9 @@ flatpak_installation_install_full (const char *branch
,
const char * const *subpaths
,
FlatpakProgressCallback progress
,
- gpointer progress_data
,
- GCancellable *cancellable
,
- GError **error
);
+ gpointer progress_data
,
+ GCancellable *cancellable
,
+ GError **error
);
Install a new application or runtime.
Note that this function was originally written to always return a
FlatpakInstalledRef. Since 0.9.13, passing
@@ -889,7 +909,7 @@ accordingly.
subpaths
-A list of subpaths to fetch, or NULL
for everything.
+A list of subpaths to fetch, or NULL
for everything.
[nullable][array zero-terminated=1]
@@ -905,12 +925,12 @@ accordingly.
cancellable
-a GCancellable.
+a GCancellable.
[nullable]
error
-return location for a GError
+return location for a GError
@@ -918,7 +938,7 @@ accordingly.
Returns
-The ref for the newly installed app or NULL
on failure.
+The ref for the newly installed app or NULL
on failure.
[transfer full]
@@ -933,9 +953,9 @@ flatpak_installation_update (const char *arch
,
const char *branch
,
FlatpakProgressCallback progress
,
- gpointer progress_data
,
- GCancellable *cancellable
,
- GError **error
);
+ gpointer progress_data
,
+ GCancellable *cancellable
,
+ GError **error
);
Update an application or runtime.
If the specified package is not installed, then FLATPAK_ERROR_NOT_INSTALLED
will be thrown.
@@ -993,12 +1013,12 @@ already up to date, then cancellable
-a GCancellable.
+a GCancellable.
[nullable]
error
-return location for a GError
+return location for a GError
@@ -1006,7 +1026,7 @@ already up to date, then
Returns
-The ref for the newly updated app or NULL
on failure.
+The ref for the newly updated app or NULL
on failure.
[transfer full]
const char *branch
,
const char * const *subpaths
,
FlatpakProgressCallback progress
,
- gpointer progress_data
,
- GCancellable *cancellable
,
- GError **error
);
+ gpointer progress_data
,
+ GCancellable *cancellable
,
+ GError **error
);
Update an application or runtime.
If the specified package is not installed, then FLATPAK_ERROR_NOT_INSTALLED
will be thrown.
subpaths
-A list of subpaths to fetch, or NULL
for everything.
A list of subpaths to fetch, or NULL
for everything.
cancellable
-a GCancellable.
a GCancellable.
error
return location for a GError
return location for a GError
The ref for the newly updated app or NULL
on failure.
The ref for the newly updated app or NULL
on failure.
[transfer full]
gboolean +gboolean flatpak_installation_uninstall (+FlatpakInstallation *self
,FlatpakRefKind kind
,const char *name
,const char *arch
,const char *branch
,FlatpakProgressCallback progress
, -gpointer progress_data
, -GCancellable *cancellable
, -GError **error
);gpointer progress_data
, +GCancellable *cancellable
, +GError **error
);
Uninstall an application or runtime.
arch
-architecture of the app or runtime to uninstall
-
+architecture of the app or runtime to uninstall; if
+NULL
, flatpak_get_default_arch()
is assumed.
+[nullable]
branch
-name of the branch of the app or runtime to uninstall
-
+name of the branch of the app or runtime to uninstall;
+if NULL
, master
is assumed.
+[nullable]
progress
@@ -1165,12 +1187,12 @@ flatpak_installation_uninstall (
cancellable
-a GCancellable.
+a GCancellable.
[nullable]
error
-return location for a GError
+return location for a GError
@@ -1178,20 +1200,106 @@ flatpak_installation_uninstall (
+flatpak_installation_uninstall_full ()
+gboolean
+flatpak_installation_uninstall_full (FlatpakInstallation *self
,
+ FlatpakUninstallFlags flags
,
+ FlatpakRefKind kind
,
+ const char *name
,
+ const char *arch
,
+ const char *branch
,
+ FlatpakProgressCallback progress
,
+ gpointer progress_data
,
+ GCancellable *cancellable
,
+ GError **error
);
+Uninstall an application or runtime.
+
+Parameters
+
+
+
+
+
+
+
+
+self
+
+
+
+
+flags
+set of FlatpakUninstallFlags flags
+
+
+
+kind
+what this ref contains (an FlatpakRefKind)
+
+
+
+name
+name of the app or runtime to uninstall
+
+
+
+arch
+architecture of the app or runtime to uninstall; if
+NULL
, flatpak_get_default_arch()
is assumed.
+[nullable]
+
+
+branch
+name of the branch of the app or runtime to uninstall;
+if NULL
, master
is assumed.
+[nullable]
+
+
+progress
+the callback.
+[scope call][nullable]
+
+
+progress_data
+user data passed to progress
+.
+[closure progress][nullable]
+
+
+cancellable
+a GCancellable.
+[nullable]
+
+
+error
+return location for a GError
+
+
+
+
+
+
+Since: 0.11.8
+
+
+
flatpak_installation_launch ()
-gboolean
+gboolean
flatpak_installation_launch (FlatpakInstallation *self
,
const char *name
,
const char *arch
,
const char *branch
,
const char *commit
,
- GCancellable *cancellable
,
- GError **error
);
+ GCancellable *cancellable
,
+ GError **error
);
Launch an installed application.
You can use flatpak_installation_get_installed_ref()
or
flatpak_installation_get_current_installed_app()
to find out what builds
@@ -1234,12 +1342,12 @@ to launch.
cancellable
-a GCancellable.
+a GCancellable.
[nullable]
error
-return location for a GError
+return location for a GError
@@ -1247,7 +1355,7 @@ to launch.
FlatpakInstallation *self
,
const char *name
,
- GCancellable *cancellable
,
- GError **error
);
+ GCancellable *cancellable
,
+ GError **error
);
Get the last build of reference name
that was installed with
-flatpak_installation_install()
, or NULL
if the reference has
+flatpak_installation_install()
, or NULL
if the reference has
never been installed locally.
cancellable
a GCancellable.
a GCancellable.
error
return location for a GError
return location for a GError
const char *name
,
const char *arch
,
const char *branch
,
- GCancellable *cancellable
,
- GError **error
);
+ GCancellable *cancellable
,
+ GError **error
);
Returns information about an installed ref, such as the available builds, its size, location, etc.
cancellable
a GCancellable.
a GCancellable.
error
return location for a GError
return location for a GError
an FlatpakInstalledRef, or NULL
if an error occurred.
an FlatpakInstalledRef, or NULL
if an error occurred.
[transfer full]
gint +gint flatpak_installation_get_priority (FlatpakInstallation *self
);Returns the numeric priority of the system installation for
@@ -1485,11 +1593,11 @@ flatpak_installation_get_storage_type (self
.
flatpak_installation_list_installed_refs ()
-GPtrArray * +GPtrArray * flatpak_installation_list_installed_refs (+FlatpakInstallation *self
, -GCancellable *cancellable
, -GError **error
);GCancellable *cancellable
, +GError **error
);Lists the installed references.
Parameters
@@ -1507,12 +1615,12 @@ flatpak_installation_list_installed_refs- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -1520,7 +1628,7 @@ flatpak_installation_list_installed_refs - error
+ return location for a GError
return location for a GError
@@ -1528,12 +1636,12 @@ flatpak_installation_list_installed_refsReturns
-an GPtrArray of +
a GPtrArray of FlatpakInstalledRef instances.
[transfer container][element-type FlatpakInstalledRef]
flatpak_installation_list_installed_refs_by_kind ()
-GPtrArray * +GPtrArray * flatpak_installation_list_installed_refs_by_kind (+FlatpakInstallation *self
,FlatpakRefKind kind
, -GCancellable *cancellable
, -GError **error
);GCancellable *cancellable
, +GError **error
);Lists the installed references of a specific kind.
Parameters
@@ -1556,12 +1664,12 @@ flatpak_installation_list_installed_refs_by_kind- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -1569,7 +1677,7 @@ flatpak_installation_list_installed_refs_by_kind - error
+ return location for a GError
return location for a GError
@@ -1577,11 +1685,11 @@ flatpak_installation_list_installed_refs_by_kindReturns
-an GPtrArray of +
a GPtrArray of FlatpakInstalledRef instances.
[transfer container][element-type FlatpakInstalledRef]
flatpak_installation_list_installed_refs_for_update ()
-GPtrArray * +GPtrArray * flatpak_installation_list_installed_refs_for_update (+FlatpakInstallation *self
, -GCancellable *cancellable
, -GError **error
);GCancellable *cancellable
, +GError **error
);Lists the installed references that has a remote update that is not locally available. However, even though an app is not returned by this it can have local updates available that has not been deployed. Look @@ -1602,12 +1710,12 @@ at commit vs latest_commit on installed apps for this.
- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -1615,21 +1723,21 @@ at commit vs latest_commit on installed apps for this. - error
+ return location for a GError
return location for a GError
Returns
-an GPtrArray of -FlatpakInstalledRef instances.
+a GPtrArray of +FlatpakInstalledRef instances, or
NULL
on error.[transfer container][element-type FlatpakInstalledRef]
flatpak_installation_list_installed_related_refs_sync ()
-GPtrArray * +GPtrArray * flatpak_installation_list_installed_related_refs_sync (+FlatpakInstallation *self
,const char *remote_name
,const char *ref
, -GCancellable *cancellable
, -GError **error
);GCancellable *cancellable
, +GError **error
);Lists all the locally installed refs from
remote_name
that are related toref
@@ -1668,12 +1776,12 @@ FLATPAK_UPDATE_FLAGS_NO_PULL to install previously pulled refs.- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -1681,7 +1789,7 @@ FLATPAK_UPDATE_FLAGS_NO_PULL to install previously pulled refs. - error
+ return location for a GError
return location for a GError
@@ -1690,12 +1798,12 @@ FLATPAK_UPDATE_FLAGS_NO_PULL to install previously pulled refs.Returns
-an GPtrArray of +
a GPtrArray of FlatpakRelatedRef instances.
[transfer container][element-type FlatpakRelatedRef]
flatpak_installation_list_remote_refs_sync ()
-GPtrArray * +GPtrArray * flatpak_installation_list_remote_refs_sync (+FlatpakInstallation *self
, -const char *remote_name
, -GCancellable *cancellable
, -GError **error
);const char *remote_or_uri
, +GCancellable *cancellable
, +GError **error
);Lists all the applications and runtimes in a remote.
Parameters
@@ -1712,18 +1820,18 @@ flatpak_installation_list_remote_refs_sync- - remote_name
+ the name of the remote
+ remote_or_uri
the name or URI of the remote
- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -1731,21 +1839,78 @@ flatpak_installation_list_remote_refs_sync - error
+ return location for a GError
return location for a GError
Returns
-an GPtrArray of +
a GPtrArray of FlatpakRemoteRef instances.
[transfer container][element-type FlatpakRemoteRef]
++flatpak_installation_list_remotes_by_type ()
+GPtrArray * +flatpak_installation_list_remotes_by_type + (+FlatpakInstallation *self
, +const FlatpakRemoteType types[]
, +gsize num_types
, +GCancellable *cancellable
, +GError **error
);Lists only the remotes whose type is included in the
+types
+ argument.++Parameters
+++
+ + ++ + + + ++ self
+ + + ++ types
+ an array of FlatpakRemoteType.
[array length=num_types] ++ ++ num_types
+ the number of types provided in
types
++ + ++ cancellable
+ a GCancellable.
[nullable] ++ + ++ error
+ return location for a GError
+ ++Returns
+a GPtrArray of +FlatpakRemote instances.
+[transfer container][element-type FlatpakRemote]
+
+flatpak_installation_list_remote_related_refs_sync ()
-GPtrArray * +GPtrArray * flatpak_installation_list_remote_related_refs_sync (+FlatpakInstallation *self
,const char *remote_name
,const char *ref
, -GCancellable *cancellable
, -GError **error
);GCancellable *cancellable
, +GError **error
);Lists all the available refs on
+remote_name
that are related toref
@@ -1759,6 +1924,8 @@ everyone should always be installed. For example, reference should be installed/updated with the app, andflatpak_related_ref_should_delete()
returns TRUE if it should be uninstalled with the main ref.The commit property of each FlatpakRelatedRef is not guaranteed to be +non-
NULL
.Parameters
@@ -1785,12 +1952,12 @@ should be uninstalled with the main ref.
- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -1798,7 +1965,7 @@ should be uninstalled with the main ref. - error
+ return location for a GError
return location for a GError
@@ -1807,12 +1974,12 @@ should be uninstalled with the main ref.Returns
-an GPtrArray of +
a GPtrArray of FlatpakRelatedRef instances.
[transfer container][element-type FlatpakRelatedRef]
@@ -350,7 +376,7 @@ orflatpak_installation_list_remotes ()
-GPtrArray * ++GPtrArray * flatpak_installation_list_remotes (-FlatpakInstallation *self
, -GCancellable *cancellable
, -GError **error
);Lists the remotes, in priority (highest first) order. For same priority, -an earlier added remote comes before a later added one.
+GCancellable *cancellable
, +GError **error
);Lists the static remotes, in priority (highest first) order. For same +priority, an earlier added remote comes before a later added one.
@@ -107,34 +121,46 @@Parameters
@@ -1829,12 +1996,12 @@ an earlier added remote comes before a later added one.
- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -1853,9 +2020,9 @@ an earlier added remote comes before a later added one. - error
+ return location for a GError
return location for a GError
FlatpakRemote * flatpak_installation_get_remote_by_name (+FlatpakInstallation *self
, -const gchar *name
, -GCancellable *cancellable
, -GError **error
);const gchar *name
, +GCancellable *cancellable
, +GError **error
);Looks up a remote by name.
Parameters
@@ -1878,12 +2045,12 @@ flatpak_installation_get_remote_by_name- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -1891,21 +2058,23 @@ flatpak_installation_get_remote_by_name - error
+ return location for a GError
return location for a GError
Returns
-a FlatpakRemote instances, or
+NULL
error.a FlatpakRemote instances, or
NULL
error.[transfer full]
+flatpak_installation_fetch_remote_metadata_sync ()
-GBytes * +GBytes * flatpak_installation_fetch_remote_metadata_sync (+FlatpakInstallation *self
,const char *remote_name
,FlatpakRef *ref
, -GCancellable *cancellable
, -GError **error
);GCancellable *cancellable
, +GError **error
);Obtains the metadata file from a commit.
+NOTE: Since 0.11.4 this information is accessible in FlatpakRemoteRef, so this +function is not very useful anymore.
+Parameters
+@@ -1932,12 +2101,12 @@ flatpak_installation_fetch_remote_metadata_sync
- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -1945,8 +2114,8 @@ flatpak_installation_fetch_remote_metadata_sync - error
+ return location for a GError
return location for a GError
@@ -1961,8 +2130,8 @@ flatpak_installation_fetch_remote_ref_syncReturns
-a GBytes containing the flatpak metadata file, -or
+NULL
if an error occurred.a GBytes containing the flatpak metadata file, +or
NULL
if an error occurred.[transfer full]
const char *name
,const char *arch
,const char *branch
, -GCancellable *cancellable
, -GError **error
); +GCancellable *cancellable
, +GError **error
);Gets the current remote branch of a ref in the remote.
Parameters
@@ -2005,12 +2174,12 @@ flatpak_installation_fetch_remote_ref_sync- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -2018,28 +2187,30 @@ flatpak_installation_fetch_remote_ref_sync - error
+ return location for a GError
return location for a GError
Returns
-a FlatpakRemoteRef instance, or
+NULL
.a FlatpakRemoteRef instance, or
NULL
.[transfer full]
flatpak_installation_fetch_remote_size_sync ()
-gboolean +gboolean flatpak_installation_fetch_remote_size_sync (+FlatpakInstallation *self
,const char *remote_name
,FlatpakRef *ref
, -guint64 *download_size
, -guint64 *installed_size
, -GCancellable *cancellable
, -GError **error
);guint64 *download_size
, +guint64 *installed_size
, +GCancellable *cancellable
, +GError **error
);Gets information about the maximum amount of data that needs to be transferred to pull the ref from a remote repository, and about the amount of local disk space that is required to check out this commit.
Note that if there are locally available data that are in the ref, which is common for instance if you're doing an update then the real download size may be smaller than what is returned here.
+NOTE: Since 0.11.4 this information is accessible in FlatpakRemoteRef, so this +function is not very useful anymore.
Parameters
@@ -3014,22 +3194,60 @@ is just an estimate@@ -2076,12 +2247,12 @@ than what is returned here.
- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -2089,7 +2260,7 @@ than what is returned here. - error
+ return location for a GError
return location for a GError
@@ -2099,8 +2270,8 @@ than what is returned here. flatpak_installation_load_app_overrides (FlatpakInstallation *self
,const char *app_id
, -GCancellable *cancellable
, -GError **error
); +GCancellable *cancellable
, +GError **error
);Loads the metadata overrides file for an application.
Parameters
@@ -2123,12 +2294,12 @@ flatpak_installation_load_app_overrides- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -2137,21 +2308,21 @@ flatpak_installation_load_app_overrides - error
+ return location for a GError
return location for a GError
Returns
the contents of the overrides files, -or
+orNULL
if an error occurred.NULL
if an error occurred.[transfer full]
flatpak_installation_update_appstream_sync ()
-gboolean +gboolean flatpak_installation_update_appstream_sync (+FlatpakInstallation *self
,const char *remote_name
,const char *arch
, -gboolean *out_changed
, -GCancellable *cancellable
, -GError **error
);gboolean *out_changed
, +GCancellable *cancellable
, +GError **error
);Updates the local copy of appstream for
remote_name
for the specifiedarch
. @@ -2177,22 +2348,22 @@ If you need progress feedback, usearch
-+ Architecture to update, or
NULL
for the local machine archArchitecture to update, or
NULL
for the local machine arch- out_changed
+ Set to
TRUE
if the contents of the appstream changed,FALSE
if nothing changed.Set to
TRUE
if the contents of the appstream changed,FALSE
if nothing changed.[nullable] - cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -2200,7 +2371,7 @@ If you need progress feedback, use - error
+ return location for a GError
return location for a GError
Returns
-+
TRUE
on success, orFALSE
on error
@@ -2208,11 +2379,11 @@ If you need progress feedback, useflatpak_installation_install_bundle ()
FlatpakInstalledRef * flatpak_installation_install_bundle (+FlatpakInstallation *self
, -GFile *file
, +GFile *file
,FlatpakProgressCallback progress
, -gpointer progress_data
, -GCancellable *cancellable
, -GError **error
);gpointer progress_data
, +GCancellable *cancellable
, +GError **error
);Install an application or runtime from an flatpak bundle file. See flatpak-build-bundle(1) for how to create bundles.
@@ -2231,7 +2402,7 @@ See flatpak-build-bundle(1) for how to create bundles.- file
+ a GFile that is an flatpak bundle
a GFile that is an flatpak bundle
@@ -2247,12 +2418,12 @@ See flatpak-build-bundle(1) for how to create bundles. - cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -2260,7 +2431,7 @@ See flatpak-build-bundle(1) for how to create bundles. - error
+ return location for a GError
return location for a GError
@@ -2269,14 +2440,14 @@ See flatpak-build-bundle(1) for how to create bundles.Returns
-The ref for the newly installed app or
+NULL
on failure.The ref for the newly installed app or
NULL
on failure.[transfer full]
flatpak_installation_install_ref_file ()
FlatpakRemoteRef * flatpak_installation_install_ref_file (+FlatpakInstallation *self
, -GBytes *ref_file_data
, -GCancellable *cancellable
, -GError **error
);GBytes *ref_file_data
, +GCancellable *cancellable
, +GError **error
);Creates a remote based on the passed in .flatpakref file contents in
-ref_file_data
and returns the FlatpakRemoteRef that can be used to install it.Note, the FlatpakRemoteRef will not have the commit field set, to +
Note, the FlatpakRemoteRef will not have the commit field set, or other details, to avoid unnecessary roundtrips. If you need that you have to resolve it explicitly with
flatpak_installation_fetch_remote_ref_sync()
.@@ -2300,12 +2471,12 @@ explicitly with@@ -2322,10 +2493,10 @@ on error.cancellable
-+ a GCancellable.
a GCancellable.
[nullable] @@ -2313,7 +2484,7 @@ explicitly with - error
+ return location for a GError
return location for a GError
Returns
-a FlatpakRemoteRef if the remote has been added successfully,
NULL
+a FlatpakRemoteRef if the remote has been added successfully,
NULL
on error.[transfer full]
flatpak_installation_drop_caches ()
-gboolean +gboolean flatpak_installation_drop_caches (+FlatpakInstallation *self
, -GCancellable *cancellable
, -GError **error
);GCancellable *cancellable
, +GError **error
);Drops all internal (in-memory) caches. For instance, this may be needed to pick up new or changed remotes configured outside this installation instance.
@@ -2344,12 +2515,12 @@ remotes configured outside this installation instance.- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -2357,17 +2528,17 @@ remotes configured outside this installation instance. - error
+ return location for a GError
return location for a GError
@@ -2560,8 +2731,8 @@ referred to byflatpak_installation_modify_remote ()
-gboolean +gboolean flatpak_installation_modify_remote (+FlatpakInstallation *self
,FlatpakRemote *remote
, -GCancellable *cancellable
, -GError **error
);GCancellable *cancellable
, +GError **error
);Saves changes in the
remote
object.@@ -2391,12 +2562,12 @@ flatpak_installation_modify_remote (
- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -2404,17 +2575,17 @@ flatpak_installation_modify_remote ( - error
+ return location for a GError
return location for a GError
Returns
-+
TRUE
if the modifications have been committed successfully
TRUE
if the modifications have been committed successfully
flatpak_installation_remove_remote ()
-gboolean +gboolean flatpak_installation_remove_remote (+FlatpakInstallation *self
,const char *name
, -GCancellable *cancellable
, -GError **error
);GCancellable *cancellable
, +GError **error
);Removes the remote with the given name from the installation.
Parameters
@@ -2437,12 +2608,12 @@ flatpak_installation_remove_remote (
- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -2450,18 +2621,18 @@ flatpak_installation_remove_remote ( - error
+ return location for a GError
return location for a GError
Returns
-+
TRUE
if the remote has been removed successfully
TRUE
if the remote has been removed successfully
flatpak_installation_update_remote_sync ()
-gboolean +gboolean flatpak_installation_update_remote_sync (+FlatpakInstallation *self
,const char *name
, -GCancellable *cancellable
, -GError **error
);GCancellable *cancellable
, +GError **error
);Updates the local configuration of a remote repository by fetching the related information from the summary file in the remote OSTree repository and committing the changes to the local installation.
@@ -2486,12 +2657,12 @@ repository and committing the changes to the local installation.- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -2499,18 +2670,18 @@ repository and committing the changes to the local installation. - error
+ return location for a GError
return location for a GError
Returns
-+
TRUE
if the remote has been updated successfully
TRUE
if the remote has been updated successfullySince: 0.6.13
flatpak_installation_cleanup_local_refs_sync ()
-gboolean +gboolean flatpak_installation_cleanup_local_refs_sync (+FlatpakInstallation *self
, -GCancellable *cancellable
, -GError **error
);GCancellable *cancellable
, +GError **error
);Remove all OSTree refs from the local flatpak repository which are not in a deployed state. The next time the underlying OSTree repo is pruned, objects which were attached to that ref will be removed. This is useful if @@ -2537,12 +2708,12 @@ referred to by
ref
- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -2550,7 +2721,7 @@ referred to by - error
+ return location for a GError
return location for a GError
ref
Since: 0.10.0
ref
char * flatpak_installation_get_config (+FlatpakInstallation *self
,const char *key
, -GCancellable *cancellable
, -GError **error
);GCancellable *cancellable
, +GError **error
);Get a global configuration option for the remote, see
flatpak_installation_set_config_sync()
for supported keys.@@ -2585,12 +2756,12 @@ flatpak_installation_get_config (
- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -2598,16 +2769,16 @@ flatpak_installation_get_config ( - error
+ return location for a GError
return location for a GError
Returns
-The (newly allocated) value, or
+NULL
on error (G_KEY_FILE_ERROR_KEY_NOT_FOUND
error if key is not set)The (newly allocated) value, or
NULL
on error (G_KEY_FILE_ERROR_KEY_NOT_FOUND
error if key is not set)
flatpak_installation_prune_local_repo ()
-gboolean +gboolean flatpak_installation_prune_local_repo (+FlatpakInstallation *self
, -GCancellable *cancellable
, -GError **error
);GCancellable *cancellable
, +GError **error
);Remove all orphaned OSTree objects from the underlying OSTree repo in
@@ -2627,12 +2798,12 @@ flatpak_installation_prune_local_repo (installation
.
cancellable
-+ a GCancellable.
a GCancellable.
[nullable] @@ -2640,19 +2811,19 @@ flatpak_installation_prune_local_repo ( - error
+ return location for a GError
return location for a GError
Returns
-+
TRUE
on success
TRUE
on success
flatpak_installation_remove_local_ref_sync ()
-gboolean +gboolean flatpak_installation_remove_local_ref_sync (+FlatpakInstallation *self
,const char *remote_name
,const char *ref
, -GCancellable *cancellable
, -GError **error
);GCancellable *cancellable
, +GError **error
);Remove the OSTree ref given by
remote_name
:ref
from the local flatpak @@ -2691,12 +2862,12 @@ referred to byref
- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -2704,18 +2875,18 @@ referred to by - error
+ return location for a GError
return location for a GError
ref
flatpak_installation_set_config_sync ()
-gboolean +gboolean flatpak_installation_set_config_sync (+FlatpakInstallation *self
,const char *key
,const char *value
, -GCancellable *cancellable
, -GError **error
);GCancellable *cancellable
, +GError **error
);Set a global configuration option for the installation, currently the only supported key is "languages", which is a comman-separated list of langue codes like "sv;en;pl", or "" to mean all languages.
@@ -2740,17 +2911,17 @@ list of langue codes like "sv;en;pl", or "" to mean all languages.- value
+ the new value, or
NULL
to unsetthe new value, or
NULL
to unset- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -2758,22 +2929,22 @@ list of langue codes like "sv;en;pl", or "" to mean all languages. - error
+ return location for a GError
return location for a GError
flatpak_installation_update_appstream_full_sync ()
-gboolean +gboolean flatpak_installation_update_appstream_full_sync (+FlatpakInstallation *self
,const char *remote_name
,const char *arch
,FlatpakProgressCallback progress
, -gpointer progress_data
, -gboolean *out_changed
, -GCancellable *cancellable
, -GError **error
);gpointer progress_data
, +gboolean *out_changed
, +GCancellable *cancellable
, +GError **error
);Updates the local copy of appstream for
@@ -2798,7 +2969,7 @@ flatpak_installation_update_appstream_full_syncremote_name
for the specifiedarch
.- arch
+ Architecture to update, or
NULL
for the local machine archArchitecture to update, or
NULL
for the local machine arch@@ -2814,17 +2985,17 @@ flatpak_installation_update_appstream_full_sync - out_changed
+ Set to
TRUE
if the contents of the appstream changed,FALSE
if nothing changed.Set to
TRUE
if the contents of the appstream changed,FALSE
if nothing changed.[nullable] - cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -2832,7 +3003,7 @@ flatpak_installation_update_appstream_full_sync - error
+ return location for a GError
return location for a GError
@@ -2861,9 +3032,9 @@ on the current machine, in order of priority (default is first).
flatpak_get_system_installations ()
-GPtrArray * -flatpak_get_system_installations (+GCancellable *cancellable
, -GError **error
);GPtrArray * +flatpak_get_system_installations (GCancellable *cancellable
, +GError **error
);Lists the system installations according to the current configuration and current availability (e.g. doesn't return a configured installation if not reachable).
@@ -2877,12 +3048,12 @@ availability (e.g. doesn't return a configured installation if not reachable).- cancellable
+ a GCancellable.
a GCancellable.
[nullable] @@ -2890,7 +3061,7 @@ availability (e.g. doesn't return a configured installation if not reachable). - error
+ return location for a GError
return location for a GError
@@ -2901,9 +3072,9 @@ availability (e.g. doesn't return a configured installation if not reachable).Returns
-an GPtrArray of +
a GPtrArray of FlatpakInstallation instances.
[transfer container][element-type FlatpakInstallation]
FlatpakProgressCallback ()
void (*FlatpakProgressCallback) (+const char *status
, -guint progress
, -gboolean estimating
, -gpointer user_data
);guint progress
, +gboolean estimating
, +gpointer user_data
);The progress callback is called repeatedly during long-running operations such as installations or updates, and can be used to update progress information in a user interface.
@@ -2985,8 +3156,17 @@ is just an estimate+ - - + + +Don't use static deltas when pulling
++ + + + +Don't prune the local OSTree repository after updating (Since: 0.11.8)
+- - + + +Don't use static deltas when pulling
+- - + + +Don't install any new builds that might be fetched
++ + - - + + +Don't try to fetch new builds from the remote repo
++
++enum FlatpakUninstallFlags
+Flags to alter the behavior of
+ +flatpak_installation_uninstall_full()
.Since: 0.11.8
@@ -3087,6 +3305,6 @@ is just an estimate+
Generated by GTK-Doc V1.28 \ No newline at end of file diff --git a/reference/html/FlatpakInstalledRef.html b/reference/html/FlatpakInstalledRef.html index dfe3b8c9..8a2d32f6 100644 --- a/reference/html/FlatpakInstalledRef.html +++ b/reference/html/FlatpakInstalledRef.html @@ -8,7 +8,7 @@ - + @@ -50,7 +50,7 @@-guint64 +guint64 flatpak_installed_ref_get_installed_size () @@ -58,7 +58,7 @@ -gboolean +gboolean flatpak_installed_ref_get_is_current () @@ -80,7 +80,7 @@ + -GBytes * +GBytes * flatpak_installed_ref_load_metadata () @@ -93,6 +93,20 @@ flatpak_installed_ref_get_subpaths () + +const char * + ++flatpak_installed_ref_get_eol () + ++ const char * + ++flatpak_installed_ref_get_eol_rebase () + +-gchar * +gchar *deploy-dir Read / Write - +guint64 ++gchar * +end-of-life +Read / Write / Construct Only ++ ++gchar * +end-of-life-rebase +Read / Write / Construct Only ++ guint64 installed-size Read / Write - gboolean +gboolean is-current Read / Write -gchar * +gchar *latest-commit Read / Write -gchar * +gchar *origin Read / Write - @@ -156,7 +182,7 @@GStrv +GStrv subpaths Read / Write @@ -340,8 +366,8 @@ flatpak_installed_ref_load_metadata (Object Hierarchy
-GObject +GObject ╰── FlatpakRef ╰── FlatpakInstalledRef@@ -198,7 +224,7 @@ flatpak_installed_ref_get_deploy_dir (
flatpak_installed_ref_get_installed_size ()
-guint64 +guint64 flatpak_installed_ref_get_installed_size (FlatpakInstalledRef *self
);Returns the installed size of the ref.
@@ -225,7 +251,7 @@ flatpak_installed_ref_get_installed_size
flatpak_installed_ref_get_is_current ()
-gboolean +gboolean flatpak_installed_ref_get_is_current (FlatpakInstalledRef *self
);Returns whether the ref is current.
@@ -245,7 +271,7 @@ flatpak_installed_ref_get_is_current (
Returns
-+
TRUE
if the ref is current
TRUE
if the ref is current
@@ -306,10 +332,10 @@ flatpak_installed_ref_get_origin (
flatpak_installed_ref_load_metadata ()
-GBytes * +GBytes * flatpak_installed_ref_load_metadata (+FlatpakInstalledRef *self
, -GCancellable *cancellable
, -GError **error
);GCancellable *cancellable
, +GError **error
);Loads the metadata file for this ref.
Parameters
@@ -327,12 +353,12 @@ flatpak_installed_ref_load_metadata (
- cancellable
+ a GCancellable.
a GCancellable.
[nullable] - error
+ a return location for a GError
a return location for a GError
NULL
if an error occurred.flatpak_installed_ref_get_subpaths ()
const char * const * flatpak_installed_ref_get_subpaths (-FlatpakInstalledRef *self
);Returns the subpaths that are installed, or
+NULL
if all files installed.Returns the subpaths that are installed, or
NULL
if all files installed.Parameters