Installs an application or runtime. The primary way to install is to specify a
name as the source and one ore more
REFs to specify the application or runtime to install. If
is omitted, the configured remotes are searched for the first
and the user is asked to confirm the resulting choice.
argument is a full or partial identifier 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 you will be prompted to choose one of them. You will also be prompted with choices if
doesn't match anything in the remote exactly but is similar to one or more refs in the remote (e.g. "devhelp" is similar to "org.gnome.Devhelp").
By default this looks for both apps and runtimes with the given
in the specified
REMOTE, but you can limit this by using the
option, or by supplying the initial element in the
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
If the specified
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
for more information.
The alternative form of the command (with
--bundle) allows to install directly from a source such as a
single-file bundle or a
application description. The options are optional if the first argument has the expected filename extension.
Note that flatpak allows to have multiple branches of an application and runtimes 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 this can manually changed with flatpak make-current.
Unless overridden with the
option, this command installs the application or runtime in the default system-wide installation.
The following options are understood:
Show help options and exit.
as a single-bundle file. This is assumed if the argument ends with
as an application description file. This is assumed if the argument ends with
Uninstall first if already installed.
Install the application or runtime in a per-user installation.
Install the application or runtime in the default system-wide installation.
Install the application or runtime in a system-wide installation specified by
among those defined in
is equivalent to using
The default architecture to install for, if not given explicitly in the
for architectures supported by the host.
Install only a subpath of
REF. This is mainly used to install a subset of locales. This can be added multiple times to install multiple subpaths.
Check bundle signatures with GPG key from
(- for stdin).
Download the latest version, but don't deploy it.
Don't download the latest version, deploy whatever is locally available.
Don't download related extensions, such as the locale data.
Don't verify runtime dependencies when installing.
Normally install just ignores things that are already installed (printing a warning), but if --or-update is specified it silently turns it into an update operation instead.
Assume that all
REFs are apps if not explicitly specified.
Assume that all
REFs are runtimes if not explicitly specified.
Automatically answer yes to all questions (or pick the most prioritized answer). This is useful for automation.
Produce minimal output and avoid most questions. This is suitable for use in non-interactive situations, e.g. in a build script.
Print debug information during command processing.
Print OSTree debug information during command processing.
$ flatpak install gedit
$ flatpak install flathub org.gnome.gedit
$ flatpak --installation=default install flathub org.gnome.gedit
$ flatpak --user install flathub org.gnome.gedit//3.30
$ flatpak --user install https://flathub.org/repo/appstream/org.gnome.gedit.flatpakref
$ flatpak --system install org.gnome.gedit.flatpakref