Difference between revisions of "Flatpak"

Updated style and added translate tags
imported>Dalto
(Added instructions for removing Flatpak)
(Updated style and added translate tags)
Line 1: Line 1:
[[File:Flatpaklogo.png|250px|right]]
<languages/>
__TOC__


<div style="clear: both"></div>
{{FlexSideContainerTemplate|__TOC__|[[File:Flatpaklogo.png|250px]]|7|1}}
 
 
=Overview=


{{SectionTemplate|<translate>Overview</translate>|
<translate>
[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.


Line 19: Line 17:
* 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
</translate>
}}




=Installing Flatpak=
{{SectionTemplate|<translate>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
Flatpak is available in the Manjaro repos as {{ic|flatpak}} and can be installed with your favorite package manager or using the command
pamac install flatpak
</translate>




=Using Flatpak=
{{UserCmd|command=pamac install flatpak}}
}}


{{SectionTemplate|<translate>Using Flatpak</translate>|
<!-- Sub 1 -->
{{SubContentTemplate|<translate>Managing Flatpaks via Discover</translate>|2=


==Managing Flatpaks via Discover==
{{FlexSideContainerTemplate|[[File:Kdediscover.png|400px]]|2=
 
[[File:Kdediscover.png|left|400px]]
 


<translate>
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:
pamac install discover


{{UserCmd|command=pamac install discover}}


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>
{{tip|<translate>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>Managing Flatpaks via Discover</translate>|2=


{{tip|Discover can also install and update software from the Manjaro repos if you install the package {{ic|packagekit-qt5}}}}
{{FlexSideContainerTemplate|[[File:Gnomesoftware.png|400px]]|2=
 
<div style="clear: both"></div>
 
 
==Managing Flatpaks via Gnome Software==
 
[[File:Gnomesoftware.png|left|400px]]
 


<translate>
One 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:
One 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:
pamac install gnome-software


{{UserCmd|command=pamac install gnome-software}}


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>
{{tip|<translate>Gnome Software can also install and update software from the Manjaro repos</translate>}}
}}


|4=1}}


{{tip|Gnome Software can also install and update software from the Manjaro repos}}
}}


<div style="clear: both"></div>
{{SectionTemplate|<translate>Managing Flatpaks via the CLI</translate>|2=
<!-- Sub 1 -->
{{SubContentTemplate|<translate>Finding and Installing Flatpaks</translate>|
<translate>
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}}
=Managing Flatpaks via the CLI=
 
 
==Finding and Installing Flatpaks==
 
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:
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 80:
  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>
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
flatpak install org.videolan.VLC
</translate>
 
{{UserCmd|command=flatpak install org.videolan.VLC}}


<translate>
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 -->
==Displaying Detailed Flatpak Information==
{{SubContentTemplate|<translate>Displaying Detailed Flatpak Information</translate>|
 
<translate>
You can get more details about a specific Flatpak using the command {{ic|flatpak info}}.  For example:
You can get more details about a specific Flatpak using the command {{ic|flatpak info}}.  For example:
flatpak info org.videolan.VLC
</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 106:
   Collection: org.flathub.Stable
   Collection: org.flathub.Stable
  Installation: system
  Installation: system
     Installed: 81.4 MB
     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 113:
       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 -->


==Getting installed Flatpaks==
{{SubContentTemplate|<translate>Getting installed Flatpaks</translate>|
 
<translate>
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:
flatpak list
</translate>
 
{{UserCmd|command=flatpak list}}
 
|4=1}}
==Updating Flatpaks==


<!-- Sub 4 -->
{{SubContentTemplate|<translate>Updating Flatpaks</translate>|
<translate>
Updating your collection of Flatpaks is a simple process.  Simply run the command:
Updating your collection of Flatpaks is a simple process.  Simply run the command:
flatpak upgrade
</translate>
 
{{UserCmd|command=flatpak upgrade}}
|4=1}}


==Removing Flatpaks==
<!-- Sub 5 -->


{{SubContentTemplate|<translate>Removing Flatpaks</translate>|
<translate>
You can remove Flatpaks with the command {{ic|flatpak uninstall}}.  For example:
You can remove Flatpaks with the command {{ic|flatpak uninstall}}.  For example:
flatpak uninstall org.videolan.VLC
</translate>
 
{{UserCmd|command=flatpak uninstall org.videolan.VLC}}
 
|4=1}}
=Removing Flatpak Support=
}}


{{SectionTemplate|<translate>Removing Flatpak Support</translate>|2=
<translate>
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
pamac remove flatpak
</translate>
{{UserCmd|command=pamac remove flatpak}}




<translate>
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
sudo rm -r /var/lib/flatpak
</translate>
rm -r ~/.local/share/flatpak
{{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:}}]]