I have a couple of flatpaks installed that are no longer available on flathub, and i want to make sure to back them up so that i can run them later if i install a fresh distro for example.

Is it as simple as copying the application folder from ~/.local/share/flatpak and adding it there later? Does that include dependencies as well?

  • Chewy@discuss.tchncs.de
    link
    fedilink
    arrow-up
    28
    ·
    12 days ago

    Yes, ~/.local/share/flatpak includes all user installed flatpaks, while /var/lib/flatpak includes all system wide installed flatpaks. Both include repository information and required runtimes (i.e. dependencies).

    This does not include user data, which is stored in ~/.var/app.

    Make sure to test your backup just in case on another system/VM.

    • Railison@aussie.zone
      link
      fedilink
      English
      arrow-up
      2
      ·
      10 days ago

      Can someone explain why global flatpaks are installed in /var/lib and not /opt or /usr/local?

    • LifeLemons@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      arrow-down
      2
      ·
      12 days ago

      What about app data? If I only want to backup my app data for all flatpak application but not the application itself, where can I find the directory?

        • LifeLemons@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          arrow-down
          2
          ·
          edit-2
          11 days ago

          Bruh, I am pretty sure when I commented the question, this information wasn’t there.

          Is there a way to see previous edits of a comment in fediverse?

          Edit: Nvm I didnt read properly

  • Leaflet@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    edit-2
    12 days ago

    flatpak create-usb [OPTION…] MOUNT-PATH [REF…] - Copy apps or runtimes onto removable media

    I don’t think it has to be removable media despite the description. I’m also not exactly sure how to install the packages once they’re copied over.

    For more details, see flatpak create-usb --help and flatpak man pages.