Difference between revisions of "Flatpak"

From Dogtag
Jump to: navigation, search
m (Creating Flatpak Package)
m (Listing Installed Packages)
 
(6 intermediate revisions 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 13: Line 15:
 
<pre>
 
<pre>
 
$ flatpak install flathub <package ID>
 
$ flatpak install flathub <package ID>
 +
</pre>
 +
 +
= Listing Installed Packages =
 +
 +
<pre>
 +
$ flatpak list
 +
</pre>
 +
 +
= Removing a Package =
 +
 +
<pre>
 +
$ flatpak uninstall <package>
 
</pre>
 
</pre>
  
Line 26: Line 40:
  
 
<pre>
 
<pre>
$ flatpak install flathub org.freedesktop.Platform//18.08
+
$ flatpak install flathub org.freedesktop.Platform//18.08 org.freedesktop.Sdk.Extension.openjdk11
 
</pre>
 
</pre>
  
Line 32: Line 46:
  
 
<pre>
 
<pre>
$ flatpak-builder build-dir org.dogtagpki.pki.server.json
+
$ flatpak-builder <build dir> <manifest> --force-clean
 +
</pre>
 +
 
 +
To test the build:
 +
 
 +
<pre>
 +
$ flatpak-builder --run <build dir> <manifest> <program>
 
</pre>
 
</pre>
  
Line 40: Line 60:
 
* [http://docs.flatpak.org/en/latest/first-build.html Building your first Flatpak]
 
* [http://docs.flatpak.org/en/latest/first-build.html Building your first Flatpak]
 
* [http://blog.matbooth.co.uk/08-openjdk-in-flathub.html The State of Java in Flathub]
 
* [http://blog.matbooth.co.uk/08-openjdk-in-flathub.html The State of Java in Flathub]
 +
* [https://github.com/flathub/org.freedesktop.Sdk.Extension.openjdk11 SDK Extension for OpenJDK 11]
 
* [[Snap]]
 
* [[Snap]]

Latest revision as of 14:56, 5 August 2020

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>

Listing Installed Packages

$ flatpak list

Removing a Package

$ flatpak uninstall <package>

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