Is there a way to disable a Flatpak app from being updated in Pamac?

Hi all.

My question is as per title.

The current issue I’m facing:

  1. The latest version of the flatpak app, ABC, is highly unstable, and I have to revert to earlier version.
  2. When I performed a general update (AUR and other flatpak app) on Pamac, I have deselect ABC before I proceed to click “Apply”. However, Pamac did not respect my deselection, and proceeded to update ABC to latest version.
  3. I have to perform a CLI downgrade on ABC in order to restore its stability.

So, how should I disable the upgrade of this ABC (since deselecting it doesn’t work in Pamac) when performing the update of other apps?

Thanks!

I might assume this would work;

https://wiki.archlinux.org/title/Flatpak#Prevent_updates_to_a_runtime_or_application

the command states flatpak mask name, but after running the command flatpak mask ABC, Pamac still show upgrade available.
I tried flatpak mask Application ID, and it worked now.

I’m not sure how exactly pamac is generating the results.
You may need to restart it.
But I’m pretty sure it will end up just running attempted flatpak update … so even if it tries it should fail to upgrade ‘ABC’ if it was masked using flatpak mask ABC.

The name in the command must be the flatpak ‘Name’ according to flatpak.
Or thats what the wiki suggests.
If somehow the ID is required … then use that.

With a quick search it does seem the actual man page only illustrates the ref id;

NAME

flatpak-mask - Mask out updates and automatic installation
SYNOPSIS

flatpak mask [OPTION...] PATTERN...
DESCRIPTION

Flatpak maintains a list of patterns that define which refs are masked. A masked ref will never be updated or automatically installed (for example a masked extension marked auto-download will not be downloaded). You can still manually install such refs, but once they are installed the version will be pinned.

The patterns are just a partial ref, with the * character matching anything within that part of the ref. Here are some example patterns:

org.some.App
org.some.App//unstable
app/org.domain.*
org.some.App/arm

To list the current set of masks, run this command without any patterns.
OPTIONS

The following options are understood:

-h, --help
Show help options and exit.

--remove
Instead of adding the patterns, remove matching patterns.

-u, --user
Mask refs in a per-user installation.

--system
Mask refs in the default system-wide installation.

--installation=NAME
Mask refs in a system-wide installation specified by NAME among those defined in /etc/flatpak/installations.d/. Using --installation=default is equivalent to using --system.

-v, --verbose
Print debug information during command processing.
EXAMPLES

$ flatpak mask

$ flatpak mask org.broken.App

$ flatpak mask --remove org.broken.App

https://man.archlinux.org/man/flatpak-mask.1.en

If you can verify then I might try and/or ask some others as well and get the Archwiki changed to reflect the correct procedure.

when i ran flatpak mask ABC, the command was executed without error, but the Pamac still showed upgrade available.

when I ran flatpak mask Application ID, the command was also executed without error, and this time Pamac no longer showing the app as “upgrade available”, though this app still appeared in “Installed” list - which is fine.

Unless Pamac has a tendency to show delay outcome from the CLI command, I tend to think that flatpak mask Application ID is the working command.

It is right there in the pamac preferences dialog.

Do show which tab.
Thanks.

flatpak

Your method prevents updates of ALL flatpak apps.

As per my original post:

Sorry, i have misunderstood.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.