Flatpak comes with a rich commandline interface.
Table of Contents
flatpak-install — Install an application or runtime
Install from a configured remote:
flatpak install [OPTION...] REMOTE-NAME REF...
Install from a .flatpakref file:
flatpak install [OPTION...] [--from] LOCATION
Install from a .flatpak bundle:
flatpak install [OPTION...] [--bundle] FILENAME
Install from an OCI registry:
flatpak install [OPTION...] --oci LOCATION [TAG]
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 application or runtime to install.
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 in the remote, and if there are multiple matches an error message will list the alternatives.
By default this looks for both apps and runtime with the given REF in the specified REMOTE , but you can limit this by using the --app or --runtime option, or by supplying the initial element in the REF.
The alternative form of the command ([--from], [--bundle] or [--oci]) allows you to install directly from a source such as a .flatpak single-file bundle, a .flatpakref app description or an OCI registry. The options are optional if the first argument have 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, 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:
-h, --helpShow help options and exit.
--bundleAssume LOCATION is a .flatpak single-bundle file. This is optional if the arguments ends with .flatpak.
--fromAssume LOCATION is a .flatpakref file containing the details of the app to be installed. This is optional if the arguments ends with .flatpakref.
--ociInstall from a oci registry with a given uri and optionally a tag (defaults to latest).
--userInstall the application or runtime in a per-user installation.
--systemInstall the application or runtime in the default system-wide installation.
--installation=NAME
Install the application or runtime in a system-wide installation
specified by NAME among those defined in
/etc/flatpak/installations.d. Using
--installation=default is equivalent to using
--system .
--arch=ARCHThe default architecture to install for, if not given explicitly in the REF .
--subpath=PATHInstall only a subpath of the ref. This is mainly used to install a subset of locales. This can be added multiple times to install multiple subpaths.,
--no-deployDownload the latest version, but don't deploy it.
--no-pullDon't download the latest version, deploy whatever is locally available.
--no-relatedDon't download related extensions, such as the locale data.
--no-depsDon't verify runtime dependencies when installing.
--appAssume that all REF s are apps if not explicitly specified.
--runtimeAssume that all REF s are runtimes if not explicitly specified.
-v, --verbosePrint debug information during command processing.
--ostree-verbosePrint OSTree debug information during command processing.
--versionPrint version information and exit.
flatpak-update — Update an application or runtime
flatpak update [OPTION...] [REF...]
Updates applications and runtimes. REF is a reference to the application or runtime to install. If no REF is given, everything is updated.
Each REF arguments 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 apps and runtime with the given REF in the specified REMOTE , but you can limit this by using the --app or --runtime option, or by supplying the initial element in the REF.
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.
Note that updating a runtime is different from installing a different branch, and runtime updates are expected to keep strict compatibility. If an application update does cause a problem, it is possible to go back to the previous version, with the --commit option.
Unless overridden with the --user or the --installation option, this command updates the default system-wide installation.
The following options are understood:
-h, --helpShow help options and exit.
--userUpdate a per-user installation.
--systemUpdate the default system-wide installation.
--installation=NAME
Updates a system-wide installation specified by NAME
among those defined in /etc/flatpak/installations.d.
Using --installation=default is equivalent to using
--system .
--arch=ARCHThe architecture to update for.
--subpath=PATHInstall only a subpath of the ref. This is mainly used to install a subset of locales. This can be added multiple times to install multiple subpaths. If this is not specified the subpaths specified at install time are reused.
--commit=COMMITUpdate to this commit, instead of the tip of the branch.
--no-deployDownload the latest version, but don't deploy it.
--no-pullDon't download the latest version, deploy it whatever is locally available.
--no-relatedDon't download related extensions, such as the locale data.
--no-depsDon't update or install runtime dependencies when installing.
--appOnly look for an app with the given name.
--appstreamUpdate appstream for the remote.
--runtimeOnly look for an runtime with the given name.
-v, --verbosePrint debug information during command processing.
--ostree-verbosePrint OSTree debug information during command processing.
--versionPrint version information and exit.
flatpak-uninstall — Uninstall an application or runtime
flatpak uninstall [OPTION...] [REF...]
Uninstalls an application or runtime. REF is a reference to the application or runtime to install. If no REF is given, everything is updated.
Each REF arguments 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.
Normally, this command removes the ref for this application/runtime from the local OSTree repository and purges and 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.
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:
-h, --helpShow help options and exit.
--keep-refKeep the ref for the application and the objects belonging to it in the local repository.
--userUpdates a per-user installation.
--systemUpdates the default system-wide installation.
--installation=NAME
Updates a system-wide installation specified by NAME
among those defined in /etc/flatpak/installations.d.
Using --installation=default is equivalent to using
--system .
--arch=ARCHThe architecture to uninstall, instead of the architecture of the host system.
--appOnly look for an app with the given name.
--runtimeOnly look for an runtime with the given name.
--no-relatedDon't uninstall related extensions, such as the locale data.
-v, --verbosePrint debug information during command processing.
--ostree-verbosePrint OSTree debug information during command processing.
--versionPrint version information and exit.
flatpak-list — List installed applications and/or runtimes
flatpak list [OPTION...]
Lists the names of the installed applications and/or runtime.
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 the installed apps, but you can change this by using the --app or --runtime option.
The following options are understood:
-h, --helpShow help options and exit.
--userList per-user installations.
--systemList the default system-wide installations.
--installation=NAME
List a system-wide installation specified by NAME
among those defined in /etc/flatpak/installations.d.
Using --installation=default is equivalent to using
--system .
--arch=ARCHList installations for this architecture.
-d, --show-detailsShow arches and branches, in addition to the application names.
--appList applications.
--runtimeList runtimes.
-v, --verbosePrint debug information during command processing.
--ostree-verbosePrint OSTree debug information during command processing.
--versionPrint version information and exit.
flatpak-info — Show information about installed application and/or runtime
flatpak info [OPTION...] NAME [BRANCH]
Show info about and installed application and/or runtime.
By default, both per-user and system-wide installations are queried. Use the --user, --system or --installation options to change this.
By default this queries the installed apps and runtimes, but you can limit this by using the --app or --runtime option.
The following options are understood:
-h, --helpShow help options and exit.
--userQuery per-user installations.
--systemQuery the default system-wide installation.
--installation=NAME
Query a system-wide installation by NAME among
those defined in /etc/flatpak/installations.d.
Using --installation=default is equivalent to using
--system .
--appQuery for applications.
--runtimeQuery for runtimes.
--arch=ARCHQuery for this architecture.
-r, --show-refShow the installed ref.
-o, --show-originShow the remote the ref is installed from.
-c, --show-commitShow the installed commit id.
-v, --verbosePrint debug information during command processing.
--versionPrint version information and exit.