Difference between revisions of "Flatpak"

From Dogtag
Jump to: navigation, search
m (Creating Flatpak Package)
m (Creating Flatpak Package)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
= Installation =
 
= Installation =
  
Flatpak is installed by default on Fedora.
+
<pre>
 +
$ dnf install flatpak
 +
</pre>
  
 
= Enabling Flathub Repository =
 
= Enabling Flathub Repository =
Line 32: Line 34:
  
 
<pre>
 
<pre>
$ flatpak-builder build-dir <manifest> --force-clean
+
$ flatpak-builder <build dir> <manifest> --force-clean
 +
</pre>
 +
 
 +
To test the build:
 +
 
 +
<pre>
 +
$ flatpak-builder --run <build dir> <manifest> <program>
 
</pre>
 
</pre>
  

Latest revision as of 03:16, 5 November 2019

Installation

$ dnf install flatpak

Enabling Flathub Repository

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

Installing a Package

$ flatpak install flathub <package ID>

Creating Flatpak Package

To install Flatpak builder:

$ dnf install flatpak-builder

To install runtime dependencies:

$ flatpak install flathub org.freedesktop.Platform//18.08 org.freedesktop.Sdk.Extension.openjdk11

To build Flatpak package:

$ flatpak-builder <build dir> <manifest> --force-clean

To test the build:

$ flatpak-builder --run <build dir> <manifest> <program>

See Also