Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 26. Installing applications using Flatpak
You can install certain applications using the Flatpak package manager. The following sections describe how to search for, install, launch, and update Flatpak applications on the command line and in the graphical interface.
Red Hat provides Flatpak applications only as a Technology Preview feature. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process. For more information about the support scope of Red Hat Technology Preview features, see https://access.redhat.com/support/offerings/techpreview.
The Flatpak package manager itself is fully supported.
26.1. The Flatpak technology Link kopierenLink in die Zwischenablage kopiert!
Flatpak provides a sandbox environment for application building, deployment, distribution, and installation.
Applications that you launch using Flatpak have minimum access to the host system, which protects the system installation against third-party applications. Flatpak provides application stability regardless of the versions of libraries installed on the host system.
Flatpak applications are distributed from repositories called remotes. Red Hat provides a remote with RHEL applications. Additionally, third-party remotes are available as well. Red Hat does not support applications from third-party remotes.
26.2. Setting up Flatpak Link kopierenLink in die Zwischenablage kopiert!
This procedure installs the Flatpak package manager.
Procedure
Install the
flatpakpackage:yum install flatpak
# yum install flatpakCopy to Clipboard Copied! Toggle word wrap Toggle overflow
26.3. Enabling the Red Hat Flatpak remote Link kopierenLink in die Zwischenablage kopiert!
This procedure configures the Red Hat Container Catalog as a Flatpak remote on your system.
Prerequisites
You have an account on the Red Hat Customer Portal.
NoteFor large-scale deployments where the users do not have Customer Portal accounts, Red Hat recommends using registry service accounts. For details, see Registry Service Accounts.
Procedure
Enable the
rhelFlatpak remote:flatpak remote-add \ --if-not-exists \ rhel \ https://flatpaks.redhat.io/rhel.flatpakrepo$ flatpak remote-add \ --if-not-exists \ rhel \ https://flatpaks.redhat.io/rhel.flatpakrepoCopy to Clipboard Copied! Toggle word wrap Toggle overflow Log into the Red Hat Container Catalog:
podman login registry.redhat.io
$ podman login registry.redhat.io Username: your-user-name Password: your-passwordCopy to Clipboard Copied! Toggle word wrap Toggle overflow Provide the credentials to your Red Hat Customer Portal account or your registry service account tokens.
By default, Podman saves the credentials only until you log out.
Optional: Save your credentials permanently. Use one of the following options:
Save the credentials for the current user:
cp $XDG_RUNTIME_DIR/containers/auth.json \ $HOME/.config/flatpak/oci-auth.json$ cp $XDG_RUNTIME_DIR/containers/auth.json \ $HOME/.config/flatpak/oci-auth.jsonCopy to Clipboard Copied! Toggle word wrap Toggle overflow Save the credentials system-wide:
cp $XDG_RUNTIME_DIR/containers/auth.json \ /etc/flatpak/oci-auth.json# cp $XDG_RUNTIME_DIR/containers/auth.json \ /etc/flatpak/oci-auth.jsonCopy to Clipboard Copied! Toggle word wrap Toggle overflow For best practices, Red Hat recommends that you log into the Red Hat Container Catalog using registry account tokens when installing credentials system-wide.
Verification
List the enabled Flatpak remotes:
flatpak remotes
$ flatpak remotes Name Options rhel system,oci,no-gpg-verifyCopy to Clipboard Copied! Toggle word wrap Toggle overflow
26.4. Searching for Flatpak applications Link kopierenLink in die Zwischenablage kopiert!
This procedure searches for an application in the enabled Flatpak remotes on the command line. The search uses the application name and description.
Prerequisites
- Flatpak is installed.
- The Red Hat Flatpak repository is enabled.
Procedure
Search for an application by name:
flatpak search application-name
$ flatpak search application-nameCopy to Clipboard Copied! Toggle word wrap Toggle overflow For example, to search for the Thunderbird application, use:
flatpak search Thunderbird
$ flatpak search ThunderbirdCopy to Clipboard Copied! Toggle word wrap Toggle overflow The search results include the ID of the application:
Application ID Version Branch Remotes Description org.mozilla.Thunderbird stable rhel Thunderbird is a free and open source email, newsfeed, chat, and calendaring client
Application ID Version Branch Remotes Description org.mozilla.Thunderbird stable rhel Thunderbird is a free and open source email, newsfeed, chat, and calendaring clientCopy to Clipboard Copied! Toggle word wrap Toggle overflow
26.5. Installing Flatpak applications Link kopierenLink in die Zwischenablage kopiert!
This procedure installs a selected application from the enabled Flatpak remotes on the command line.
Prerequisites
- Flatpak is installed.
- The Red Hat Flatpak remote is enabled.
Procedure
Install an application from the
rhelremote:flatpak install rhel application-id
$ flatpak install rhel application-idCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace application-id with the ID of the application. For example:
flatpak install rhel org.mozilla.Thunderbird
$ flatpak install rhel org.mozilla.ThunderbirdCopy to Clipboard Copied! Toggle word wrap Toggle overflow
26.6. Launching Flatpak applications Link kopierenLink in die Zwischenablage kopiert!
This procedure launches an installed Flatpak application from the command line.
Prerequisites
- Flatpak is installed.
- The selected Flatpak application is installed.
Procedure
Launch the application:
flatpak run application-id
$ flatpak run application-idCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace application-id with the ID of the application. For example:
flatpak run org.mozilla.Thunderbird
$ flatpak run org.mozilla.ThunderbirdCopy to Clipboard Copied! Toggle word wrap Toggle overflow
26.7. Updating Flatpak applications Link kopierenLink in die Zwischenablage kopiert!
This procedure updates one or more installed Flatpak applications to the most recent version in the corresponding Flatpak remote.
Prerequisites
- Flatpak is installed.
- A Flatpak remote is enabled.
Procedure
Update one or more Flatpak applications:
To update a specific Flatpak application, specify the application ID:
flatpak update application-id
$ flatpak update application-idCopy to Clipboard Copied! Toggle word wrap Toggle overflow To update all Flatpak applications, specify no application ID:
flatpak update
$ flatpak updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow
26.8. Installing Flatpak applications in the graphical interface Link kopierenLink in die Zwischenablage kopiert!
This procedure searches for Flatpak applications using the Software application.
Prerequisites
- Flatpak is installed.
- The Red Hat Flatpak remote is enabled.
Procedure
- Open the Software application.
- Make sure that the tab is active.
- Click the search button in the upper-left corner of the window.
- In the input box, type the name of the application that you want to install, such as Thunderbird.
Select the correct application in the search results.
If the application is listed several times, select the version where the Source field in the Details section reports
flatpaks.redhat.io.- Click the button.
- If Software asks you to log in, enter your Customer Portal credentials or your registry service account tokens.
- Wait for the installation process to complete.
- Optional: Click the button to launch the application.
26.9. Updating Flatpak applications in the graphical interface Link kopierenLink in die Zwischenablage kopiert!
This procedure updates one or more installed Flatpak applications using the Software application.
Prerequisites
- Flatpak is installed.
- A Flatpak remote is enabled.
Procedure
- Open the Software application.
- Select the tab.
- In the Application Updates section, you can find all available updates to Flatpak applications.
Update one or more applications:
- To apply all available updates, click the button.
- To update only a specific application, click the button next to the application item.
Optional: Enable automatic application updates.
- Click the menu button in the upper-right corner of the window.
- Select Update Preferences.
Enable Automatic Updates.
Flatpak applications now update automatically.