'\" t .\" Title: flatpak create-usb .\" Author: Matthew Leeds .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 03/27/2024 .\" Manual: flatpak create-usb .\" Source: flatpak .\" Language: English .\" .TH "FLATPAK CREATE\-USB" "1" "" "flatpak" "flatpak create-usb" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" flatpak-create-usb \- Copy apps and/or runtimes onto removable media\&. .SH "SYNOPSIS" .HP \w'\fBflatpak\ create\-usb\fR\ 'u \fBflatpak create\-usb\fR [OPTION...] MOUNT\-PATH REF... .SH "DESCRIPTION" .PP 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\*(Aqt require an Internet connection\&. After using this command, the USB drive can be connected to another computer which already has the relevant remote(s) configured, and Flatpak will install or update from the drive offline (see below)\&. If online, the drive will be used as a cache, meaning some objects will be pulled from it and others from the Internet\&. 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\&. .PP On the destination computer one can install from the USB (or any mounted filesystem) using the \fB\-\-sideload\-repo\fR option with \fBflatpak install\fR\&. It\*(Aqs also possible to configure sideload paths using symlinks; see \fBflatpak\fR(1)\&. Flatpak also includes systemd units to automatically sideload from hot\-plugged USB drives, but these may or may not be enabled depending on your Linux distribution\&. .PP Each REF 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\&. .PP By default this looks for both installed apps and runtimes with the given REF, but you can limit this by using the \fB\-\-app\fR or \fB\-\-runtime\fR option\&. .PP All REFs must be in the same installation (user, system, or other)\&. Otherwise it\*(Aqs ambiguous which repository metadata refs to put on the USB drive\&. .PP By default \fBflatpak create\-usb\fR uses \&.ostree/repo as the destination directory under MOUNT\-PATH but if you specify another location using \fB\-\-destination\-repo\fR 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\&. .PP Unless overridden with the \fB\-\-system\fR, \fB\-\-user\fR, or \fB\-\-installation\fR 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\&. .SH "OPTIONS" .PP The following options are understood: .PP \fB\-h\fR, \fB\-\-help\fR .RS 4 Show help options and exit\&. .RE .PP \fB\-u\fR, \fB\-\-user\fR .RS 4 Copy refs from the per\-user installation\&. .RE .PP \fB\-\-system\fR .RS 4 Copy refs from the default system\-wide installation\&. .RE .PP \fB\-\-installation=NAME\fR .RS 4 Copy refs from a system\-wide installation specified by NAME among those defined in /etc/flatpak/installations\&.d/\&. Using \fB\-\-installation=default\fR is equivalent to using \fB\-\-system\fR\&. .RE .PP \fB\-\-app\fR .RS 4 Assume that all REFs are apps if not explicitly specified\&. .RE .PP \fB\-\-runtime\fR .RS 4 Assume that all REFs are runtimes if not explicitly specified\&. .RE .PP \fB\-\-destination\-repo\fR=DEST .RS 4 Create the repository in DEST under MOUNT\-PATH, rather than the default location\&. .RE .PP \fB\-\-allow\-partial\fR .RS 4 Don\*(Aqt 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\&. .RE .PP \fB\-v\fR, \fB\-\-verbose\fR .RS 4 Print debug information during command processing\&. .RE .PP \fB\-\-ostree\-verbose\fR .RS 4 Print OSTree debug information during command processing\&. .RE .SH "EXAMPLES" .PP \fB$ flatpak create\-usb /run/media/mwleeds/1a9b4cb2\-a7ef\-4d9b\-91a5\-6eaf8fdd2bf6/ com\&.endlessm\&.wiki_art\&.en\fR .SH "SEE ALSO" .PP \fBflatpak\fR(1), \fBflatpak remote-modify\fR(1), \fBflatpak-install\fR(1), \fBflatpak-list\fR(1), \fBostree-create-usb\fR(1)