Verifying downloads

I noticed the command “flatpak repair --user” which is used to repair installed apps and I was wondering if there is a way to verify downloaded apps after installation ?

If you run flatpak repair with the --dry-run argument, it will only verify the installation, but not repair it automatically.

That being said, this is mostly needed if you suspect an error in the installation, and then you could also just fix it directly.

If I download an application can I verify that it is valid and not corrupted?

As mentioned you can use theoretically use flatpak repair --dry-run to check if the installation was successful.

However, Flatpak itself should already verify it before completing the installation, so it shouldn’t be something you need to run.

How does flatpak verify a download of an app?