Backup of installed flatpaks?
from lunsjentilanette@sh.itjust.works to linux@lemmy.ml on 17 Dec 13:51
https://sh.itjust.works/post/29614390

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?

#linux

threaded - newest

Chewy7324@discuss.tchncs.de on 17 Dec 14:00 next collapse

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.

lunsjentilanette@sh.itjust.works on 17 Dec 14:17 next collapse

Perfect, thank you!!!

LifeLemons@lemmy.ml on 17 Dec 14:29 next collapse

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?

mearce@programming.dev on 17 Dec 22:21 collapse

Based on the above comment, I think you are looking for ~/.var/app.

LifeLemons@lemmy.ml on 18 Dec 04:19 collapse

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

Railison@aussie.zone on 19 Dec 01:22 collapse

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

Lemmchen@feddit.org on 17 Dec 14:50 next collapse

Is there a specific reason why these packages are no longer on Flathub?

lunsjentilanette@sh.itjust.works on 17 Dec 15:03 collapse

Yes, they are switch emulators and were taken down by the developers following legal troubles with nintendo

that_leaflet@lemmy.world on 17 Dec 17:32 next collapse

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.

Blisterexe@lemmy.zip on 17 Dec 18:42 collapse

there’s an app called warehouse that makes this easy afaik

deadcatbounce@reddthat.com on 17 Dec 20:10 collapse

This.