13장. Managing Flatpak repositories in Satellite
Flatpak allows users to install, manage, and run portable applications on Satellite, primarily for desktop environments. In Satellite, you can integrate Flatpak repositories to distribute and control Flatpak applications across managed hosts. By configuring Flatpak repositories, you ensure that systems have access to the necessary application packages while maintaining centralized control over application deployment.
Flatpak repositories function similarly to other content repositories in Satellite. You can synchronize, manage access permissions, and assign repositories to specific lifecycle environments to control which applications are available to systems. You can also use Hammer CLI to manage Flatpak repositories.
For more information, see Installing applications using Flatpak.
13.1. Enabling the Flatpak remote 링크 복사링크가 클립보드에 복사되었습니다!
This procedure configures and manages Flatpak repositories by using Hammer CLI.
Prerequisites
-
Your Satellite account has a role that grants the permissions
view_flatpak_remotes,create_flatpak_remotes,edit_flatpak_remotes, anddestroy_flatpak_remotes. - Set up Flatpak. For more information, see Setting up Flatpak.
-
Flatpak applications rely on Flatpak runtimes. For example,
rhel9/firefox-flatpakdepends onrhel9/flatpak-runtime. - Ensure that runtime repositories are available to clients alongside application repositories for installations to work.
CLI procedure
Enable a Flatpak remote on the Satellite Server by using standalone Red Hat Enterprise Linux systems or Red Hat Satellite:
$ hammer flatpak-remote create \ --name=My_Flatpak_Remote_Name \ --organization=My_Organization \ --url=My_Flatpak_Remote_URLYou can include authentication details by using the options
--username=My_User_Name --token=My_Token.You can generate a Red Hat official token at Registry Service Accounts.
Update the Flatpak remote with authentication credentials:
$ hammer flatpak-remote update \ --id My_Flatpak_Remote_ID \ --token=My_Token \ --username=My_User_NameOptional: List and view information about the Flatpak remote:
$ hammer flatpak-remote list $ hammer flatpak-remote info --id My_Flatpak_Remote_IDScan the Flatpak remote:
$ hammer flatpak-remote scan --id=My_IDList repositories in the Flatpak remote:
$ hammer flatpak-remote remote-repository list --flatpak-remote-id=My_IDMirror a Flatpak remote repository to a Satellite product:
$ hammer flatpak-remote remote-repository mirror \ --id=My_Remote_Repo_ID \ --product-id=Satellite_Product_IDThe
--idin this command refers to the Flatpak remote repository ID, not the standard Satellite repository ID.You can view the repository under the selected product in Satellite web UI. Set the Include Tags field to latest.
Synchronize the Satellite repository:
$ hammer repository sync --id=My_Repo_IDThe
--idin this command refers to the standard Satellite repository ID, not the Flatpak remote repository ID.