I want to automate some Flatpak-related things, and my current problem is listing all remote packages and their versions.
For reproducibility, I am testing in a Docker container (
fedora
, debian
or ubuntu
) and doing:
# dnf install -y flatpak # or apt
# flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
Now I can list the applications, but they don't have versions!
# flatpak remote-ls --columns=application,version | head -n 3
app.authpass.AuthPass
app.bbsync.BlackboardSync
app.bluebubbles.BlueBubbles
There is no version in an individual application details either:
# flatpak remote-info flathub org.gnome.Shotwell
ID: org.gnome.Shotwell
Ref: app/org.gnome.Shotwell/x86_64/stable
Arch: x86_64
Branch: stable
Collection: org.flathub.Stable
Download: 15.7 MB
Installed: 30.1 MB
Runtime: org.gnome.Platform/x86_64/47
Sdk: org.gnome.Sdk/x86_64/47
Commit: 696f2d6c2e4021cd048794988f72247dd831497a47dc534a4a9574a35ae92657
Parent: ea367aecbac42a00745e75ff2454cf84338f5379371f6a73870b4ab986a11ad5
Subject: libportal: Update libportal-0.8.1.tar.xz to 0.9.0 (#93) (d2613444)
Date: 2024-12-22 12:31:43 +0000
_However_, if I do a search:
# flatpak search shotwell
Name Description Application ID Version Branch Remotes
Shotwell Digital photo organizer org.gnome.Shotwell 0.32.9 stable flathub
I can suddenly see versions of all packages!
# flatpak remote-ls --columns=application,version | head -n 3
app.authpass.AuthPass 1.9.6_1904
app.bbsync.BlackboardSync 0.18.0
app.bluebubbles.BlueBubbles 1.15.0.0
# flatpak remote-info flathub org.gnome.Shotwell
Shotwell - Digital photo organizer
ID: org.gnome.Shotwell
Ref: app/org.gnome.Shotwell/x86_64/stable
Arch: x86_64
Branch: stable
Version: 0.32.9
License: LGPL-2.1+
Collection: org.flathub.Stable
Download: 15.7 MB
Installed: 30.1 MB
Runtime: org.gnome.Platform/x86_64/47
Sdk: org.gnome.Sdk/x86_64/47
Commit: 696f2d6c2e4021cd048794988f72247dd831497a47dc534a4a9574a35ae92657
Parent: ea367aecbac42a00745e75ff2454cf84338f5379371f6a73870b4ab986a11ad5
Subject: libportal: Update libportal-0.8.1.tar.xz to 0.9.0 (#93) (d2613444)
Date: 2024-12-22 12:31:43 +0000
Metadata (flatpak --version; source /etc/os-release && echo $PRETTY_NAME
):
Flatpak 1.16.0
Fedora Linux 41 (Container Image)
Flatpak 1.14.6
Ubuntu 24.04.1 LTS
Flatpak 1.14.10
Debian GNU/Linux 12 (bookworm)
I am aware that using Flatpak in containers is not very useful, but my tests use containers and I don't want to have different behavior there.
* How do I initialize Flatpak's remote information so it starts giving out version information on remote-ls
?
* Why do I only have this problem in containers, and not on my Fedora workstation?
Asked by Koterpillar
(313 rep)
Feb 2, 2025, 07:26 AM
Last activity: Feb 13, 2025, 10:01 PM
Last activity: Feb 13, 2025, 10:01 PM