Flatpak: Difference between revisions

From Alpine Linux
No edit summary
No edit summary
Line 1: Line 1:
{{Draft|More documentation and testing required.}}
{{Draft|More documentation and testing required.}}


Flatpak is a technology for building and distributing desktop applications on GNU/Linux.
Flatpak is a technology for building and distributing applications that will work universally on all Linux distributons, it is similar [https://en.wikipedia.org/wiki/Snappy_(package_manager) Snap],


To get Flatpak setup on Alpine, See: [https://flatpak.org/setup/Alpine/ Alpine Quick Setup. Follow these simple steps to start using Flatpak]
 
= Setup / Installation ==
 
''From: https://flatpak.org/setup/Alpine/''
 
<br>
 
To install Flatpak you will need to enable the  Community repository, See: [https://wiki.alpinelinux.org/wiki/Post_installation#Repositories Post Installation - Repositories]
 
To install Flatpak run:
 
{{cmd|apk add flatpak}}
 
<br>
 
Next you need to add a repository, for this guide we will use the recommended repository, [https://flathub.org Flathub]
 
{{cmd|flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo}}
 
<br>
 
Now reboot to complete setup
 
<br>
 
 
<br>


* [https://docs.flatpak.org/en/latest/available-runtimes.html Flatpak - available runtimes]
* [https://docs.flatpak.org/en/latest/available-runtimes.html Flatpak - available runtimes]
Line 26: Line 52:


[[Category:Package Manager]]
[[Category:Package Manager]]
[[category: desktop]]
[[Category: Desktop]]

Revision as of 17:27, 8 December 2021

This material is work-in-progress ...

More documentation and testing required.
(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




These are all hosted on Flathub.org.

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