Section: flatpak create-usb (1)
flatpak-create-usb - Copy apps and/or runtimes onto removable media.
flatpak create-usb [OPTION...] MOUNT-PATH REF...
Copies the specified apps and/or runtimes
REFs 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 command, the USB drive can be connected to another computer and
will prefer to install from it rather than the Internet if (a) each ref comes from a configured remote whose GPG keyring will be used for verification and (b) the refs on the drive are at least as new as what's available elsewhere (e.g. the Internet if you're online). 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.
On the destination computer one can install from the USB (or any mounted filesystem) the same way you would install from the Internet, e.g. with
flatpak install flathub org.gnome.Builder
or using a GUI.
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 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
REFs must be in the same installation (user, system, or other). Otherwise it's ambiguous which repository metadata refs to put on the USB drive.
as the destination directory under
but if you specify another location using
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.
Unless overridden with the
options, this command searches both the system-wide installation and the per-user one for
and errors out if it exists in more than one.
The following options are understood:
Show help options and exit.
Copy refs from the per-user installation.
Copy refs from the default system-wide installation.
Copy refs from a system-wide installation specified by
among those defined in
is equivalent to using
Assume that all
REFs are apps if not explicitly specified.
Assume that all
REFs are runtimes if not explicitly specified.
Create the repository in
MOUNT-PATH, rather than the default location.
Don't print a warning when exporting partially installed commits, for example locale extensions without all languages. These can cause problems when installing them, for example if the language config is different on the installing side.
Print debug information during command processing.
Print OSTree debug information during command processing.
$ flatpak create-usb /run/media/mwleeds/1a9b4cb2-a7ef-4d9b-91a5-6eaf8fdd2bf6/ com.endlessm.wiki_art.en