Difference between revisions of "Flatpak"
Views
Actions
Namespaces
Variants
Tools
imported>Dalto (Added instructions for removing Flatpak) |
K2latmanesh (talk | contribs) (Marked this version for translation) |
||
(14 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> | |||
__TOC__ | __TOC__ | ||
<translate>=== Overview === <!--T:1--></translate> | |||
< | {{FlexSideContainerTemplate| | ||
<translate> | |||
<!--T:2--> | |||
[https://flatpak.org/ Flatpak] is a distro independent method for packaging and distributing Linux software. | [https://flatpak.org/ Flatpak] is a distro independent method for packaging and distributing Linux software. | ||
<!--T:3--> | |||
Using software distributed by Flatpak has a couple of distinct advantages: | Using software distributed by Flatpak has a couple of distinct advantages: | ||
* Software that is not compatible with current system libraries will still work when packaged as a Flatpak | * Software that is not compatible with current system libraries will still work when packaged as a Flatpak | ||
Line 15: | Line 14: | ||
<!--T:4--> | |||
There are some other considerations to be aware of: | There are some other considerations to be aware of: | ||
* Flatpaks are not updated as part of your system updates, they must be updated separately | * Flatpaks are not updated as part of your system updates, they must be updated separately | ||
* Only themes that have been ported to Flatpak will work with Flatpaks | * Only themes that have been ported to Flatpak will work with Flatpaks | ||
* A large set of shared runtimes will need to be installed to use Flatpaks | * A large set of shared runtimes will need to be installed to use Flatpaks | ||
|[[File:Flatpaklogo.png|right|250px]] | |||
</translate> | |||
}} | |||
{{SectionTemplate|<translate><!--T:5--> Installing Flatpak</translate>| | |||
<translate> | |||
Flatpak is available in the Manjaro repos as {{ic|flatpak}} and can be installed with your favorite package manager or using the command | <!--T:6--> | ||
Flatpak is available in the Manjaro repos as {{ic|flatpak}}, with {{ic|libpamac-flatpak-plugin}} for support in the pamac GUI and can be installed with your favorite package manager or using the command | |||
</translate> | |||
= | {{UserCmd|command=pamac install flatpak libpamac-flatpak-plugin}} | ||
}} | |||
{{SectionTemplate|<translate><!--T:7--> Using Flatpak</translate>| | |||
<!-- Sub 1 --> | |||
{{SubContentTemplate|<translate><!--T:8--> Managing Flatpaks via Discover</translate>|2= | |||
{{FlexSideContainerTemplate|<translate><!--T:36--> [[File:Kdediscover.png|400px]]</translate>|2= | |||
<translate> | |||
<!--T:9--> | |||
One way to manage your Flatpaks is with the application [https://userbase.kde.org/Discover Discover] from the KDE project. You can install the package {{ic|discover}} with your favorite package manager or the command: | One way to manage your Flatpaks is with the application [https://userbase.kde.org/Discover Discover] from the KDE project. You can install the package {{ic|discover}} with your favorite package manager or the command: | ||
<!--T:10--> | |||
{{UserCmd|command=pamac install discover}} | |||
<!--T:11--> | |||
Once installed you can run '''Discover''' and you will be able to browse, install and update Flatpaks with a familiar store interface. | Once installed you can run '''Discover''' and you will be able to browse, install and update Flatpaks with a familiar store interface. | ||
</translate> | |||
<translate> | |||
<!--T:34--> | |||
{{BoxSuccess|tip|Discover can also install and update software from the Manjaro repos if you install the package {{ic|packagekit-qt5}} | |||
}} | |||
</translate> | |||
}} | |||
|4=1}} | |||
<!-- Sub 2 --> | |||
{{SubContentTemplate|<translate><!--T:13--> Managing Flatpaks via Gnome Software</translate>|2= | |||
{{ | {{FlexSideContainerTemplate|<translate><!--T:37--> [[File:Gnomesoftware.png|400px]]</translate>|2= | ||
< | <translate> | ||
<!--T:14--> | |||
Another way to manage your Flatpaks is with the application [https://wiki.gnome.org/Apps/Software Gnome Software] from the Gnome project. You can install the package {{ic|gnome-software}} with your favorite package manager or the command: | |||
<!--T:15--> | |||
{{UserCmd|command=pamac install gnome-software}} | |||
<!--T:16--> | |||
Once installed you can run '''Software''' and you will be able to browse, install and update Flatpaks with a familiar store interface. | Once installed you can run '''Software''' and you will be able to browse, install and update Flatpaks with a familiar store interface. | ||
</translate> | |||
<translate> | |||
<!--T:35--> | |||
{{BoxSuccess|tip|Gnome Software can also install and update software from the Manjaro repos}} | |||
</translate> | |||
}} | |||
|4=1}} | |||
}} | |||
< | {{SectionTemplate|<translate><!--T:18--> Managing Flatpaks via the CLI</translate>|2= | ||
<!-- Sub 1 --> | |||
{{SubContentTemplate|<translate><!--T:19--> Finding and Installing Flatpaks</translate>| | |||
<translate> | |||
<!--T:20--> | |||
You can use the command {{ic|flatpak search}} to search for available Flatpaks. For example, if you wanted to install VLC here is what it might look like: | |||
</translate> | |||
{{UserCmd|command=flatpak search vlc}} | |||
Name Description Application ID Version Branch Remotes | Name Description Application ID Version Branch Remotes | ||
MakeMKV plugin for VLC Provides MakeMKV features for direct Blu-ray playback in VLC. org.videolan.VLC.Plugin.makemkv 3-18.08 flathub | MakeMKV plugin for VLC Provides MakeMKV features for direct Blu-ray playback in VLC. org.videolan.VLC.Plugin.makemkv 3-18.08 flathub | ||
Line 77: | Line 98: | ||
FDK-AAC Encoding Plugin for VLC Provides better AAC encoding and HE profiles support. org.videolan.VLC.Plugin.fdkaac 3-1.6 flathub | FDK-AAC Encoding Plugin for VLC Provides better AAC encoding and HE profiles support. org.videolan.VLC.Plugin.fdkaac 3-1.6 flathub | ||
<translate> | |||
<!--T:21--> | |||
From this output we can see that VLC and some related applications via Flatpak. To install VLC, we would use it's "Application ID", shown above with the command | From this output we can see that VLC and some related applications via Flatpak. To install VLC, we would use it's "Application ID", shown above with the command | ||
</translate> | |||
{{UserCmd|command=flatpak install org.videolan.VLC}} | |||
<translate> | |||
<!--T:22--> | |||
This will install the application as well as any required run-times. Once the application is installed you should be able to run it from your menu as you would with any application. | This will install the application as well as any required run-times. Once the application is installed you should be able to run it from your menu as you would with any application. | ||
</translate> | |||
|4=1}} | |||
<!-- Sub 2 --> | |||
{{SubContentTemplate|<translate><!--T:23--> Displaying Detailed Flatpak Information</translate>| | |||
<translate> | |||
You can get more details about a specific Flatpak using the command {{ic|flatpak info}}. | <!--T:24--> | ||
You can get more details about a specific Flatpak using the command {{ic|flatpak info}}. For example: | |||
</translate> | |||
{{UserCmd|command=flatpak info org.videolan.VLC}} | |||
VLC - VLC media player, the open-source multimedia player | VLC - VLC media player, the open-source multimedia player | ||
Line 99: | Line 127: | ||
Collection: org.flathub.Stable | Collection: org.flathub.Stable | ||
Installation: system | Installation: system | ||
Installed: 81. | Installed: 81.4 MB | ||
Runtime: org.kde.Platform/x86_64/5.12 | Runtime: org.kde.Platform/x86_64/5.12 | ||
Sdk: org.kde.Sdk/x86_64/5.12 | Sdk: org.kde.Sdk/x86_64/5.12 | ||
Line 106: | Line 134: | ||
Subject: Update shared-modules for udev (d3f66ebc) | Subject: Update shared-modules for udev (d3f66ebc) | ||
Date: 2019-05-06 13:30:44 +0000 | Date: 2019-05-06 13:30:44 +0000 | ||
|4=1}} | |||
<!-- Sub 3 --> | |||
{{SubContentTemplate|<translate><!--T:25--> Getting a list of installed Flatpaks</translate>| | |||
<translate> | |||
<!--T:26--> | |||
To show a list of all the Flatpaks and run-times that are currently installed you can use the command: | To show a list of all the Flatpaks and run-times that are currently installed you can use the command: | ||
</translate> | |||
{{UserCmd|command=flatpak list}} | |||
|4=1}} | |||
Updating your collection of Flatpaks is a simple process. | <!-- Sub 4 --> | ||
{{SubContentTemplate|<translate><!--T:27--> Updating Flatpaks</translate>| | |||
<translate> | |||
<!--T:28--> | |||
Updating your collection of Flatpaks is a simple process. Simply run the command: | |||
</translate> | |||
{{UserCmd|command=flatpak upgrade}} | |||
|4=1}} | |||
<!-- Sub 5 --> | |||
{{SubContentTemplate|<translate><!--T:29--> Removing Flatpaks</translate>| | |||
<translate> | |||
You can remove Flatpaks with the command {{ic|flatpak uninstall}}. | <!--T:30--> | ||
You can remove Flatpaks with the command {{ic|flatpak uninstall}}. For example: | |||
</translate> | |||
{{UserCmd|command=flatpak uninstall org.videolan.VLC}} | |||
|4=1}} | |||
}} | |||
{{SectionTemplate|<translate><!--T:31--> Removing Flatpak Support</translate>|2= | |||
<translate> | |||
<!--T:32--> | |||
If you no longer wish to have support for the Flatpack in your system you can remove it from the system by simply removing the package {{ic|flatpak}} with your favorite package manager or with the command | If you no longer wish to have support for the Flatpack in your system you can remove it from the system by simply removing the package {{ic|flatpak}} with your favorite package manager or with the command | ||
</translate> | |||
{{UserCmd|command=pamac remove flatpak}} | |||
<translate> | |||
<!--T:33--> | |||
To also remove any installed Flatpaks you need to remove the directories containing them. These are {{ic|/var/lib/flatpak}} and {{ic|~/.local/share/flatpak}}. For example, you could use the command | To also remove any installed Flatpaks you need to remove the directories containing them. These are {{ic|/var/lib/flatpak}} and {{ic|~/.local/share/flatpak}}. For example, you could use the command | ||
</translate> | |||
{{UserCmd|command=sudo rm -r /var/lib/flatpak}} | |||
{{UserCmd|command=rm -r ~/.local/share/flatpak}} | |||
}} | |||
[[Category:Contents Page]] | [[Category:Contents Page{{#translation:}}]] | ||
[[Category:Software Management{{#translation:}}]] |
Latest revision as of 04:50, 30 March 2022
Overview
Flatpak is a distro independent method for packaging and distributing Linux software.
Using software distributed by Flatpak has a couple of distinct advantages:
- Software that is not compatible with current system libraries will still work when packaged as a Flatpak
- Delta upgrades make upgrades more network efficient in the long-term
There are some other considerations to be aware of:
- Flatpaks are not updated as part of your system updates, they must be updated separately
- Only themes that have been ported to Flatpak will work with Flatpaks
- A large set of shared runtimes will need to be installed to use Flatpaks
Flatpak is available in the Manjaro repos as flatpak
, with libpamac-flatpak-plugin
for support in the pamac GUI and can be installed with your favorite package manager or using the command
discover
with your favorite package manager or the command:
Once installed you can run Discover and you will be able to browse, install and update Flatpaks with a familiar store interface.
gnome-software
with your favorite package manager or the command:
Once installed you can run Software and you will be able to browse, install and update Flatpaks with a familiar store interface.
You can use the command flatpak search
to search for available Flatpaks. For example, if you wanted to install VLC here is what it might look like:
Name Description Application ID Version Branch Remotes MakeMKV plugin for VLC Provides MakeMKV features for direct Blu-ray playback in VLC. org.videolan.VLC.Plugin.makemkv 3-18.08 flathub Bluray Java menus (BDJ) plugin for VLC Provides Bluray Java menus (BDJ) support in VLC. org.videolan.VLC.Plugin.bdj 3-18.08 flathub VLC VLC media player, the open-source multimedia player org.videolan.VLC stable flathub FDK-AAC Encoding Plugin for VLC Provides better AAC encoding and HE profiles support. org.videolan.VLC.Plugin.fdkaac 3-1.6 flathub
From this output we can see that VLC and some related applications via Flatpak. To install VLC, we would use it's "Application ID", shown above with the command
This will install the application as well as any required run-times. Once the application is installed you should be able to run it from your menu as you would with any application.
You can get more details about a specific Flatpak using the command flatpak info
. For example:
VLC - VLC media player, the open-source multimedia player ID: org.videolan.VLC Ref: app/org.videolan.VLC/x86_64/stable Arch: x86_64 Branch: stable License: GPL-2.0+ Origin: flathub Collection: org.flathub.Stable Installation: system Installed: 81.4 MB Runtime: org.kde.Platform/x86_64/5.12 Sdk: org.kde.Sdk/x86_64/5.12 Commit: 87a8e23cefe6c3f4962d303d3724db399872e68379a52b7553089f5540c9a883 Parent: 8f0c0e0bd79bfeb8748bb53e8476ee1f2deffc0e131ea5fb2890505e449df8a2 Subject: Update shared-modules for udev (d3f66ebc) Date: 2019-05-06 13:30:44 +0000
To show a list of all the Flatpaks and run-times that are currently installed you can use the command:
Updating your collection of Flatpaks is a simple process. Simply run the command:
You can remove Flatpaks with the command flatpak uninstall
. For example:
flatpak
with your favorite package manager or with the command
To also remove any installed Flatpaks you need to remove the directories containing them. These are /var/lib/flatpak
and ~/.local/share/flatpak
. For example, you could use the command