How to download programs with all their dependencies offline in a direct and easy way from Flatpak or Flathub like the command sudo apt install --download-only package-name or sudo dnf download --resolve package-name
You can use the create-usb
command to create a local repository from which an app and its dependencies can be installed: