Jump to content

Tutorials/Flatpak: Difference between revisions

From KDE Wiki Sandbox
Claus chr (talk | contribs)
Use templates for console text
Ravier (talk | contribs)
Rework to de-emphasize the nightly repo
Line 1: Line 1:
Flatpak is a solution for creating sandboxed software builds for GNU/Linux systems. You can find more information [http://flatpak.org/ here]. To learn about creating flatpaks, see our [https://develop.kde.org/docs/build/flatpak/ flatpak tutorial].
Flatpak is a solution for creating sandboxed software builds for GNU/Linux systems. You can find more information [http://flatpak.org/ here]. To learn about creating flatpaks, see our [https://develop.kde.org/docs/build/flatpak/ flatpak tutorial].


== Applications ==
== KDE Apps on Flathub ==


We are building release versions of most KDE applications and distributing them on flathub, https://flathub.org.
We are building release versions of most KDE applications and distributing them on [https://flathub.org Flathub].
We are also building "nightly" versions of most KDE applications and distributing them from the kdeapps remote at https://distribute.kde.org. The latter builds the latest source code of the application, so expect some unstable development quirks; on the bright side, if you find one, you get to tell the developers so they can fix it!


The "app store" or software center in many distributions is able to install Flatpaks.
The "app store" or software center in many distributions is able to install Flatpaks.
You can simply open the flatpakrepo files with Discover or your otherwise favorite software center:
You can directly open the [https://flathub.org/repo/flathub.flatpakrepo flatpakrepo] file with Discover or your otherwise favorite software center. Then when you search for a KDE application it should offer to install the flatpak version.
* https://flathub.org/repo/flathub.flatpakrepo
* https://distribute.kde.org/kdeapps.flatpakrepo
and then when you search for a KDE application it should offer to install the flatpak version.


Here's how to install a Flatpak application from the terminal:
Here's how to install a Flatpak application from the terminal:
{{Input|
{{Input|
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.kde.okular
}}
== Using Flatpak Applications ==
Once a flatpak package is installed, it can be run with
{{Input|
flatpak run org.kde.okular
}}
and be updated to the latest version with
{{Input|
flatpak update org.kde.okular
}}
== Nightly KDE Apps ==
We are also building "nightly" versions of most KDE applications and distributing them from the kdeapps remote at https://distribute.kde.org. The latter builds the latest source code of the application, so expect some unstable development quirks; on the bright side, if you find one, you get to tell the developers so they can fix it!
You can install it with the following flatpakrepo file: https://distribute.kde.org/kdeapps.flatpakrepo
Here's how to install a Flatpak application from the terminal:
{{Input|
flatpak remote-add --if-not-exists kdeapps https://distribute.kde.org/kdeapps.flatpakrepo
flatpak remote-add --if-not-exists kdeapps https://distribute.kde.org/kdeapps.flatpakrepo
flatpak install kdeapps org.kde.okular
flatpak install kdeapps org.kde.okular
}}
}}


If you added both the Flathub and kdeapps repos, the <code>flatpak</code> command-line tool will prompt you which one you want, something like:
If you added both the Flathub and kdeapps repos and do not specify from which repo you want to application to be pulled, the <code>flatpak</code> command-line tool will prompt you which one you want, something like:
{{Output|
{{Output|
flatpak install okular
flatpak install okular
Line 31: Line 51:
Found ref ‘app/org.kde.okular/x86_64/master’ in remote ‘kdeapps’ (system).
Found ref ‘app/org.kde.okular/x86_64/master’ in remote ‘kdeapps’ (system).
Use this ref? [Y/n]: y
Use this ref? [Y/n]: y
}}
=== Using Flatpak Applications ===
Once a flatpak package is installed, it can be run with
{{Input|
flatpak run org.kde.okular
}}
and be updated to the latest version with
{{Input|
flatpak update org.kde.okular
}}
}}


[[Category:System]]
[[Category:System]]
[[Category:Needs work]]
[[Category:Needs work]]

Revision as of 14:38, 10 February 2023

Flatpak is a solution for creating sandboxed software builds for GNU/Linux systems. You can find more information here. To learn about creating flatpaks, see our flatpak tutorial.

KDE Apps on Flathub

We are building release versions of most KDE applications and distributing them on Flathub.

The "app store" or software center in many distributions is able to install Flatpaks. You can directly open the flatpakrepo file with Discover or your otherwise favorite software center. Then when you search for a KDE application it should offer to install the flatpak version.

Here's how to install a Flatpak application from the terminal:

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

Using Flatpak Applications

Once a flatpak package is installed, it can be run with

flatpak run org.kde.okular

and be updated to the latest version with

flatpak update org.kde.okular

Nightly KDE Apps

We are also building "nightly" versions of most KDE applications and distributing them from the kdeapps remote at https://distribute.kde.org. The latter builds the latest source code of the application, so expect some unstable development quirks; on the bright side, if you find one, you get to tell the developers so they can fix it!

You can install it with the following flatpakrepo file: https://distribute.kde.org/kdeapps.flatpakrepo

Here's how to install a Flatpak application from the terminal:

flatpak remote-add --if-not-exists kdeapps https://distribute.kde.org/kdeapps.flatpakrepo
flatpak install kdeapps org.kde.okular

If you added both the Flathub and kdeapps repos and do not specify from which repo you want to application to be pulled, the flatpak command-line tool will prompt you which one you want, something like:

flatpak install okular
Looking for matches…
Remotes found with refs similar to ‘okular’:
  
 1) ‘flathub’ (system)
 2) ‘kdeapps’ (system)
  
Which do you want to use (0 to abort)? [0-2]: 2
Found ref ‘app/org.kde.okular/x86_64/master’ in remote ‘kdeapps’ (system).
Use this ref? [Y/n]: y