Put flatpak package on hold (prevent updates) in Discover

How to put flatpak package on hold in such way, that Discover will stop proposing update to this package?

Use case: flatpak package was set (in repository) to end-of-life, and Discover in update suggests uninstalling this package- I want to prevent this notifications and keep package installed.

As described here: [QUESTION] how to "exclude" update specific flatpak · Issue #2834 · flatpak/flatpak · GitHub I’ve used command:
flatpak mark packageName
but Discover keeps showing update for this package.

I meant:

flatpak mask packageName

Would be curious myself but I can’t quickly try as I had to wait for an Update.

With packageName you mean the packageID, or have tried that as wellI?
Just because man flatpak-mask does not even mention the Name (as shown by flatpak list) but only Application ID and calls that “ref” (org.something.someApp.*) in the description and examples.
On the other hand it says only “will never be updated or automatically installed” nothing about protection from a uninstall suggestion. Which I would find odd as well, at least if that can’t be shut-up.

1 Like

I’ve just checked and using ‘Application ID’ instead of ‘Name’ make Discover ignore this package in updates. Thanks for suggestion!

For the curious: some handy options:

  1. listing existing masks:
    flatpak mask
  2. removing mask:
    flatpak mask --remove PATTERN
    where PATTERN is one of listed as result of command from 1. point (or simply one of the PATTERNs that we’ve masked previously).
  3. setting mask (to prevent updates or auto-install of given application):
    flatpak mask PATTERN
    where PATTERN might be ApplicationId, eg. org.some.App
1 Like