FLATPAK-PREINSTALL(1)
π FLATPAK PREINSTALL(1) π
okay bestie, welcome to the flatpak preinstall manual page β yes that's the manual name, yes it's giving β¨operating-system-flatpak-energyβ¨, and yes we're going to read the whole thing together. grab a boba. π§
πΈ NAME πΈ
flatpak-preinstall β install flatpaks that are part of the operating system π«Ά
π SYNOPSIS π
flatpak preinstall [OPTION...]
β¨ DESCRIPTION β¨
so like, this command manages the flatpaks that are part of the operating system itself. no options? no problem. if you just run flatpak preinstall with nothing else, it synchronizes (that means installs AND removes, bestie) flatpaks so that what's on your system matches the set your OS vendor picked out. it's giving "trust the process" π
the way preinstalled flatpaks work is: the OS vendor drops .preinstall files into these two directories:
/usr/share/flatpak/preinstall.d//etc/flatpak/preinstall.d/
then, at system startup, the OS runs flatpak preinstall -y (or whatever the GUI equivalent is), and that is when the actual installation happens. lowkey iconic.
this whole system means the OS vendor gets to define the list of flatpaks that come bundled with the OS, AND they can change that list later β and the change just gets applied the next time flatpak preinstall runs. obsessed. π
and here's the part you'll love: users can opt out of preinstalled flatpaks by literally just uninstalling them. once you do that, they will NOT get automatically reinstalled again. periodt. π βοΈ
π FILE FORMAT π
the .preinstall file uses the exact same .ini file format as systemd unit files or application .desktop files. same vibe, different purpose. π
π [Flatpak Preinstall NAME] π
NAME here is the fully qualified name of the runtime or application. all the info for one single runtime or application lives inside one [Flatpak Preinstall NAME] group β and yes, you can define multiple groups in a single file. no cap.
these are the keys that can show up in this group:
Install(boolean) β whether this group should actually be installed. if you don't specify this key at all, the group will be installed. (default: yes, we're doing this π )Branch(string) β the name of the branch to install the application or runtime from. don't specify it? then the"master"branch is used.IsRuntime(boolean) β whether this group is referring to a runtime. leave it out and the group is assumed to refer to an application.CollectionID(string) β the collection ID of the remote to use, if it has one.
π¦ EXAMPLE π¦
[Flatpak Preinstall org.gnome.Loupe]
Branch=stable
IsRuntime=false
π OPTIONS π
the following options are understood, and yes, we're going through every single one because that's the whole point bestie:
-h,--helpβ show help options and exit. the classic. π«Ά--reinstallβ uninstall first if it's already installed. clean slate energy β¨-u,--userβ install the application or runtime in a per-user installation.--systemβ install the application or runtime in the default system-wide installation.--installation=NAMEβ install the application or runtime in a system-wide installation specified byNAME, picked from the ones defined in/etc/flatpak/installations.d/. heads up: using--installation=defaultis equivalent to using--system. π--no-deployβ download the latest version, but don't deploy it. look but don't touch.--no-pullβ don't download the latest version at all, just deploy whatever is locally available. use what you got π--no-relatedβ don't download related extensions, like the locale data. (sorry, translations π)--no-depsβ don't verify runtime dependencies when installing.--sideload-repo=PATHβ adds an extra local ostree repo as a source for installation. this is equivalent to using thesideload-reposdirectories (seeflatpak(1)), but you can do it on a per-command basis. and note: any path you add here is used in addition to the ones in those directories β it doesn't replace them. π--include-sdkβ for each app being installed, also installs the SDK that was used to build it. implies--or-update; incompatible with--no-deps. β οΈ--include-debugβ for each ref being installed, as well as all dependencies, also installs its debug info. implies--or-update; incompatible with--no-deps. β οΈ-y,--assumeyesβ automatically answer yes to all questions (or pick the most prioritized answer). super useful for automation, iykyk. π€--noninteractiveβ produce minimal output and avoid most questions. suitable for non-interactive situations, like in a build script.-v,--verboseβ print debug information during command processing.--ostree-verboseβ print OSTree debug information during command processing. extra deep, extra nerdy, love that for us π₯
π EXAMPLES π
$ flatpak preinstall
π SEE ALSO π
and that's the whole page, bestie!! no crumbs left, every flag accounted for π this little love letter came from the flatpak source, FLATPAK PREINSTALL(1) β go forth and preinstall responsibly β¨ππ¦
π¦ where this page comes from
- fedora 44: flatpak 1.18.4-1.fc44 Β· LGPL-2.1-or-later
- fedora 44: flatpak 1.18.4-1.fc44 Β· LGPL-2.1-or-later
- nixpkgs unstable: flatpak 1.18.4
- ubuntu stonking: flatpak 1.18.4-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms