FLATPAK-REPAIR(1)
π FLATPAK-REPAIR π
okay bestie, sit down, hydrate, because we're doing maintenance on your flatpak setup and honestly? it's giving spa day for your filesystem. this is flatpak-repair, section 1 of the manual, and it's the one you call when things are lowkey broken. π§
β¨ NAME β¨
flatpak-repair β Repair a flatpak installation π
πΈ SYNOPSIS πΈ
flatpak repair [OPTION...]
π¦ DESCRIPTION π¦
so like. Repair a flatpak installation by pruning and reinstalling invalid objects. that's the whole vibe. the repair command does all of the following, no skips, no shortcuts:
- Scan all locally available refs, removing any that don't correspond to a deployed ref. π§Ή
- Verify each commit they point to, removing any invalid objects and noting any missing objects. π
- Remove any refs that had an invalid object, and any non-partial refs that had missing objects. π
- Prune all objects not referenced by a ref, which gets rid of any possibly invalid non-scanned objects. ποΈ
- Enumerate all deployed refs and re-install any that are not in the repo (or are partial for a non-subdir deploy). π
GIRLIE LISTEN. note that flatpak repair has to be run with root privileges to operate on the system installation. do not come crying to me when it says no. it will say no. π
An alternative command for repairing OSTree repositories is ostree fsck. different tool, same energy. π«Ά
π OPTIONS π
The following options are understood:
-h,--helpβ Show help options and exit. the classic "what does anything do" button, we love her.-u,--userβ Repair per-user installation. just yours, just your little corner of the world. π--systemβ Repair system-wide installation. the big one, the main character energy one. π--installation=NAMEβ Repair the system-wide installation specified by NAME among those defined in/etc/flatpak/installations.d/. Using--installation=defaultis equivalent to using--system. iykyk π--dry-runβ Only report inconsistencies, don't make any changes. look, don't touch. window shopping. ποΈ--reinstall-allβ Reinstall all refs, regardless of whether they were removed from the repo or not. no thoughts, just reinstall. π₯-v,--verboseβ Print debug information during command processing. she's chatty and we respect it. π¬--ostree-verboseβ Print OSTree debug information during command processing. even more chatty. deep lore. π
β EXAMPLES β
the system one, with the power of sudo:
$ sudo flatpak repair
the just-for-you one, no root required:
$ flatpak repair --user
π SEE ALSO π
okay that's the whole page!! this came to you from the flatpak source, page FLATPAK REPAIR(1) in the manual, and honestly there's no date on this footer bestie, it's simply timeless. go forth and repair, you're gonna slay. π¦β¨
π¦ where this page comes from
- debian trixie: flatpak 1.16.6-1~deb13u3
- 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