Flatpak: Difference between revisions

From Alpine Linux
No edit summary
No edit summary
Line 31: Line 31:


{{Note|graphical installation of Flatpak apps may not be possible with Alpine.}}
{{Note|graphical installation of Flatpak apps may not be possible with Alpine.}}
<br>
= Usage =
To get all of the available options to use with the '''flatpak''' command run: '''flatpak --help''' or '''flatpak -h''',
<br>
To search for applications run '''flatpak search <appplicationname>'''
Example:
{{cat|flatpak search chromium|Name                  Description                                                        Application ID                        Version      Branch  Remotes
Chromium Web Browser  The web browser from Chromium project                              org.chromium.Chromium                96.0.4664.93  stable  flathub
Chromium B.S.U.        Fast paced, arcade-style, top-scrolling space shooter              net.sourceforge.chromium-bsu          0.9.16.1      stable  flathub
ungoogled-chromium    A lightweight approach to removing Google web service dependency  com.github.Eloston.UngoogledChromium  96.0.4664.45  stable  flathub}}


<br>
<br>

Revision as of 18:56, 8 December 2021

This material is work-in-progress ...

More documentation and testing is needed, but everything currently here should be safe to follow.
(Last edited by Guest09248 on 8 Dec 2021.)

Flatpak is a technology for building and distributing applications that will work universally on all Linux distributons, it is similar Snap,


Setup / Installation

From: https://flatpak.org/setup/Alpine/


To install Flatpak you will need to enable the Community repository, See: Post Installation - Repositories


To install Flatpak run:

# apk add flatpak


Next you need to add a repository, for this guide we will use the recommended repository, Flathub

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo


Now reboot to complete setup


Note: graphical installation of Flatpak apps may not be possible with Alpine.


Usage

To get all of the available options to use with the flatpak command run: flatpak --help or flatpak -h,


To search for applications run flatpak search <appplicationname>

Example:

Contents of flatpak search chromium

Name Description Application ID Version Branch Remotes Chromium Web Browser The web browser from Chromium project org.chromium.Chromium 96.0.4664.93 stable flathub Chromium B.S.U. Fast paced, arcade-style, top-scrolling space shooter net.sourceforge.chromium-bsu 0.9.16.1 stable flathub ungoogled-chromium A lightweight approach to removing Google web service dependency com.github.Eloston.UngoogledChromium 96.0.4664.45 stable flathub




Developers

These are all hosted on Flathub.org.


Troubleshooting


Fixing Audio Issues

If you have a minimal setup and don't have access to audio devices you will need to set the XDG_RUNTIME_DIR variable. Save the following script in /etc/profile.d/xdg_runtime_dir.sh and re-login to have it set up properly.

if test -z "${XDG_RUNTIME_DIR}"; then
  export XDG_RUNTIME_DIR=/tmp/$(id -u)
fi

When you launch a Flatpak you will need to start pulseaudio as well:

pulseaudio --start && flatpak run com.example.Example


Links


See Also