FLATPAK REPAIR(1)

    .SH "NAME" flatpak-repair - Repair a flatpak installation
    .SH "SYNOPSIS"
            .HP u
                flatpak repair
                 [OPTION...]

    .SH "DESCRIPTION"

        .PP Repair a flatpak installation by pruning and reinstalling invalid objects. The repair command does all of the following:

    • 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).
        .PP Note that flatpak repair has to be run with root privileges to operate on the system installation.
        .PP An alternative command for repairing OSTree repositories is ostree fsck.

    .SH "OPTIONS"

        .PP The following options are understood:

            .PP -h, --help

                    Show help options and exit.
                .RE
                .PP -u, --user

                        Repair per-user installation.
                    .RE
                    .PP --system

                            Repair system-wide installation.
                        .RE
                        .PP --installation=NAME

                                Repair the system-wide installation specified by NAME among those defined in /etc/flatpak/installations.d/. Using --installation=default is equivalent to using --system.
                            .RE
                            .PP --dry-run

                                    Only report inconsistencies, don't make any changes
                                .RE
                                .PP --reinstall-all

                                        Reinstall all refs, regardless of whether they were removed from the repo or not
                                    .RE
                                    .PP -v, --verbose

                                            Print debug information during command processing.
                                        .RE
                                        .PP --ostree-verbose

                                                Print OSTree debug information during command processing.
                                            .RE

                                    .SH "EXAMPLES"

                                        .PP $ sudo flatpak repair
                                        .PP $ flatpak repair --user

                                    .SH "SEE ALSO"

                                        .PP flatpak(1), ostree-fsck(1)