Aller au contenu

flatpak

Installation:

Solus
$ sudo eopkg install flatpak xdg-desktop-portal-gtk
Ubuntu
$ sudo apt install flatpak
$ sudo apt install gnome-software-plugin-flatpak
Debian
$ apt install flatpak
$ apt install gnome-software-plugin-flatpak
Mint

intégré depuis Mint 18.3

Utilisation:

Version de flatpak:
# solus
$ flatpak --version
Flatpak 1.0.9

# stable (13-02-2020)
1.6.2
Liste des remotes:
$ flatpak remotes
Name    Options
flathub system 
Ajouter un remote:
$ flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
Supprimer un remote:
$ flatpak remote-delete flathub
Lister le contenu d'un remote:
$ flatpak remote-ls
Ref                                                         Origin 
app.rednotebook.RedNotebook                                 flathub
ar.com.tuxguitar.TuxGuitar                                  flathub
at.priv.toastfreeware.ConfClerk                             flathub
au.edu.uq.esys.escript                                      flathub
br.com.jeanhertel.adriconf                                  flathub
br.gov.cti.invesalius                                       flathub
ca._0ldsk00l.Nestopia                                       flathub
ca.desrt.dconf-editor                                       flathub
ca.littlesvr.asunder                                        flathub
cc.arduino.arduinoide                                       flathub
cc.nift.nsm                                                 flathub
cc.retroshare.retroshare-gui                                flathub
ch.openboard.OpenBoard                                      flathub
ch.protonmail.protonmail-bridge                             flathub
Rechercher dans les remotes:
$ flatpak search gimp
Application ID             Version Branch Remotes Description                                         
org.gimp.GIMP              2.10.18 stable flathub Créer des images et modifier des photographies     
org.glimpse_editor.Glimpse 0.1.2   stable flathub Create images and edit photographs                  
com.github.unrud.djpdf     0.1.1   stable flathub Create small, searchable PDFs from scanned documents
Installer une application:
$ flatpak install flathub org.gimp.GIMP

# --user                  Work on user installations
# --system                Work on system-wide installations (default)
# -y, --assumeyes         Automatically answer yes for all questions
# -v, --verbose           Print debug information during command processing, -vv for more detail 

ou (Flatpak 1.2)

$ flatpak install gimp
Lancer une application:
$ flatpak run org.gimp.GIMP
Mettre-à-jour GIMP:
$ flatpak update org.gimp.GIMP
Looking for updates...

#  -y, --assumeyes         Automatically answer yes for all questions
#  -v, --verbose           Print debug information during command processing, -vv for more detail
Mettre-à-jour toutes les applications:
$ flatpak update
Looking for updates...

Répondre yes à toutes les questions:

$ flatpak update --assumeyes
$ flatpak update -y
Liste des applications et runtimes installés:
$ flatpak list
Ref                                                   Options       
com.dropbox.Client/x86_64/stable                      system,current
com.github.bilelmoussaoui.Authenticator/x86_64/stable system,current
com.spotify.Client/x86_64/stable                      system,current
com.xnview.XnConvert/x86_64/stable                    system,current
com.xnview.XnViewMP/x86_64/stable                     system,current
io.gitlab.Goodvibes/x86_64/stable                     system,current
org.gimp.GIMP/x86_64/stable                           system,current
org.freedesktop.Platform.GL.default/x86_64/19.08      system,runtime
org.freedesktop.Platform.html5-codecs/x86_64/18.08    system,runtime
org.freedesktop.Platform/x86_64/18.08                 system,runtime
org.gnome.Platform/x86_64/3.32                        system,runtime
org.gnome.Platform/x86_64/3.34                        system,runtime
org.gtk.Gtk3theme.Adapta-Nokto/x86_64/3.22            system,runtime
org.kde.Platform/x86_64/5.12                          system,runtime

#  --user                  Work on user installations
#  --system                Work on system-wide installations (default)
#  -v, --verbose           Print debug information during command processing, -vv for more detail
#  -d, --show-details      Show extra information
Liste des applications installées:
$ flatpak list --app
Ref                                                   Options       
com.dropbox.Client/x86_64/stable                      system,current
com.github.bilelmoussaoui.Authenticator/x86_64/stable system,current
com.spotify.Client/x86_64/stable                      system,current
com.xnview.XnConvert/x86_64/stable                    system,current
com.xnview.XnViewMP/x86_64/stable                     system,current
io.gitlab.Goodvibes/x86_64/stable                     system,current
org.gimp.GIMP/x86_64/stable                           system,current

Liste détaillée:

$ flatpak list --show-details --verbose
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening user flatpak installation at path /home/bruno/.local/share/flatpak
F: Opening system flatpak installation at path /var/lib/flatpak
Ref                                                   Origin  Active commit Latest commit Installed size Options       
com.dropbox.Client/x86_64/stable                      flathub a2e729322486  -               1,5 MB      system,current
com.github.bilelmoussaoui.Authenticator/x86_64/stable flathub 8d5f188a5340  -              12,7 MB      system,current
com.spotify.Client/x86_64/stable                      flathub e55d0e4d7069  -              33,8 MB      system,current
com.xnview.XnConvert/x86_64/stable                    flathub b2087ceb8f7e  -             103,7 MB      system,current
com.xnview.XnViewMP/x86_64/stable                     flathub 9fe6e2073ab1  -             191,1 MB      system,current
io.gitlab.Goodvibes/x86_64/stable                     flathub d854fb31e775  -               7,4 MB      system,current
org.gimp.GIMP/x86_64/stable                           flathub 62578b6f3b12  -             314,0 MB      system,current
org.freedesktop.Platform.GL.default/x86_64/19.08      flathub 4adebcd41eb6  -             260,8 MB      system,runtime
org.freedesktop.Platform.html5-codecs/x86_64/18.08    flathub b7006caaf6a7  -               8,8 MB      system,runtime
org.freedesktop.Platform.openh264/x86_64/19.08        flathub 416c864f49cf  -               1,0 kB      system,runtime
org.freedesktop.Platform/x86_64/18.08                 flathub 1f7a5575c84c  -             822,6 MB      system,runtime
org.freedesktop.Platform/x86_64/19.08                 flathub 54f40ee188c4  -             693,9 MB      system,runtime
org.gnome.Platform/x86_64/3.32                        flathub 887f56bfcc50  -               1,0 GB      system,runtime
org.gnome.Platform/x86_64/3.34                        flathub c71932cf654c  -             912,3 MB      system,runtime
org.gtk.Gtk3theme.Adapta-Nokto/x86_64/3.22            flathub d71e01891fb4  -             727,6 kB      system,runtime
org.kde.Platform/x86_64/5.12                          flathub c59410933fdf  -               1,2 GB      system,runtime
Dé-installer une application:
$ flatpak uninstall org.gimp.GIMP
Info sur une application:
$ flatpak info org.gimp.GIMP
Ref: app/org.gimp.GIMP/x86_64/stable
ID: org.gimp.GIMP
Arch: x86_64
Branch: stable
Origin: flathub
Collection ID: org.flathub.Stable
Date: 2020-02-25 00:53:47 +0000
Subject: Release GIMP 2.10.18. (bbbf1b4e)
Commit: 62578b6f3b1262ceab9fc5d8a93d1b034cda51636a88bce9de6036ae6c5f038c
Parent: 57036c515dd653f828b8c6574e4b56fca6c29b6ac04f5e84c328cc6fc5e7987f
Location: /var/lib/flatpak/app/org.gimp.GIMP/x86_64/stable/62578b6f3b1262ceab9fc5d8a93d1b034cda51636a88bce9de6036ae6c5f038c
Installed size: 314,0 MB
Runtime: org.gnome.Platform/x86_64/3.34
Sdk: org.gnome.Sdk/x86_64/3.34

#  -v, --verbose              Print debug information during command processing, -vv for more detail
Supprimer les runtimes et extensions inutilisés par les applications installées:
$ flatpak uninstall --unused
Réparer l'installation locale:
$ flatpak repair
Verifying flathub:app/com.github.bilelmoussaoui.Authenticator/x86_64/stable...
Verifying flathub:runtime/org.gnome.Platform.Locale/x86_64/3.34...
Verifying flathub:runtime/io.gitlab.Goodvibes.Locale/x86_64/stable...
Verifying flathub:runtime/com.xnview.XnViewMP.Locale/x86_64/stable...
Verifying flathub:runtime/org.gnome.Platform/x86_64/3.34...
Verifying flathub:runtime/org.freedesktop.Platform.Locale/x86_64/18.08...
Verifying flathub:runtime/org.freedesktop.Platform.Locale/x86_64/19.08...
Verifying flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/19.08...
Verifying flathub:runtime/org.gnome.Platform.Locale/x86_64/3.32...
Verifying flathub:runtime/com.github.bilelmoussaoui.Authenticator.Locale/x86_64/stable...
Verifying flathub:runtime/org.kde.Platform.Locale/x86_64/5.12...
Verifying flathub:runtime/org.gnome.Platform/x86_64/3.32...
Verifying flathub:runtime/org.freedesktop.Platform.html5-codecs/x86_64/18.08...
Verifying flathub:app/org.gimp.GIMP/x86_64/stable...
Verifying flathub:app/com.spotify.Client/x86_64/stable...
Verifying flathub:app/com.xnview.XnViewMP/x86_64/stable...
Verifying flathub:app/com.xnview.XnConvert/x86_64/stable...
Verifying flathub:appstream2/x86_64...
Verifying flathub:runtime/org.freedesktop.Platform/x86_64/19.08...
Verifying flathub:app/com.dropbox.Client/x86_64/stable...
Verifying flathub:runtime/org.freedesktop.Platform.openh264/x86_64/19.08...
Verifying flathub:runtime/org.gtk.Gtk3theme.Adapta-Nokto/x86_64/3.22...
Verifying flathub:runtime/org.kde.Platform/x86_64/5.12...
Verifying flathub:runtime/org.freedesktop.Platform/x86_64/18.08...
Verifying flathub:runtime/com.xnview.XnConvert.Locale/x86_64/stable...
Verifying flathub:app/io.gitlab.Goodvibes/x86_64/stable...
Pruning objects
Réparer les permissions d'une applications:
$ flatpak permission-reset org.gimp.GIMP
Voir les logs:
$ flatpak history
Installer une ancienne version:
$ flatpak remote-info --log flathub org.gimp.GIMP
Ref: app/org.gimp.GIMP/x86_64/stable
ID: org.gimp.GIMP
Arch: x86_64
Branch: stable
Collection ID: org.flathub.Stable
Date: 2020-02-25 00:53:47 +0000
Subject: Release GIMP 2.10.18. (bbbf1b4e)
Commit: 62578b6f3b1262ceab9fc5d8a93d1b034cda51636a88bce9de6036ae6c5f038c
Parent: 57036c515dd653f828b8c6574e4b56fca6c29b6ac04f5e84c328cc6fc5e7987f
Download size: 110,0 MB
Installed size: 314,0 MB
Runtime: org.gnome.Platform/x86_64/3.34
Sdk: org.gnome.Sdk/x86_64/3.34
History:
 Subject: Release GIMP 2.10.16. (796cb329)
 Date: 2020-02-18 22:43:45 +0000
 Commit: 57036c515dd653f828b8c6574e4b56fca6c29b6ac04f5e84c328cc6fc5e7987f

 Subject: Sync a bit with shared-modules/gtk2/gtk2.json. (29151559)
 Date: 2020-02-08 22:39:16 +0000
 Commit: a2509f771f07c1debf75a550c1a1f35c83711aeecd0fec76d3b8ec33bf273e66

 Subject: Update ibus to 1.5.20 (13429078)
 Date: 2020-02-08 15:05:01 +0000
 Commit: 26e579084aa6487b697425bffea2a433d8b88afed154d4ab9bbc5ffe4a94d5a4

 Subject: Issue 4372: GIMP cannot open images on smartphone with Android. (8739c53b)
 Date: 2019-12-17 22:24:01 +0000
 Commit: 2ca3c0405c691b1195ac200923eb34528d225766e884c3a38a3410d35259a43d

 Subject: Fix CPU detection on GEGL build. (3b047adf)
 Date: 2019-10-30 00:56:11 +0000
 Commit: 8003d469b2224a1abe54b45793c9692e822cacee860d94861f5fc5e43111a689

 Subject: Fix typo! (a752f7df)
 Date: 2019-09-02 20:28:05 +0000
 Commit: 3fdfdf0963ba67629f287092229d9f5659bc9a2eeb1158c060b09d8a603acbcf

 Subject: Release GIMP 2.10.12! (1366fa63)
 Date: 2019-06-13 02:25:52 +0000
 Commit: 798d8cd8a6a2ccf1bf21c0f5e9749dd4d97ecd511a3af1922d6fedf6c26e3a7c

Réinstaller la version du 2019-06-13:

$ sudo flatpak update \
  --commit=798d8cd8a6a2ccf1bf21c0f5e9749dd4d97ecd511a3af1922d6fedf6c26e3a7c \
  org.gimp.GIMP

Par défaut, les commandes sont system-wide. Les applications ainsi installées sont disponibles pour tous les utilisateurs. En ajoutant l'option --user, les commandes concernent uniquement l'utilisateur courant.

Flatpak identifie chaque application et runtime par un identifiant (ID): com.company.App On peut spécifier l'architecture et la version (name/architecture/branch):

  • com.company.App/i386/stable
  • com.company.App//stable
  • com.company.App/i386//

Affiche les processus courants:

$ flatpak ps
Instance   PID   Application   Runtime           
1194788972 39701 org.gimp.GIMP org.gnome.Platform
Liste de toutes les commandes:

https://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak-update

Aide:
$ flatpak --help
Usage:
  flatpak [OPTION…] COMMAND

Builtin Commands:
 Manage installed apps and runtimes
  install             Install an application or runtime
  update              Update an installed application or runtime
  uninstall           Uninstall an installed application or runtime
  list                List installed apps and/or runtimes
  info                Show info for installed app or runtime
  config              Configure flatpak
  repair              Repair flatpak installation
  create-usb          Put apps and/or runtimes onto removable media

 Finding applications and runtimes
  search              Search for remote apps/runtimes

 Running applications
  run                 Run an application
  override            Override permissions for an application
  make-current        Specify default version to run
  enter               Enter the namespace of a running application
  ps                  Enumerate running applications

 Manage file access
  document-export     Grant an application access to a specific file
  document-unexport   Revoke access to a specific file
  document-info       Show information about a specific file
  document-list       List exported files

 Manage dynamic permissions
  permission-remove   Remove item from permission store
  permission-list     List permissions
  permission-show     Show app permissions
  permission-reset    Reset app permissions

 Manage remote repositories
  remotes             List all configured remotes
  remote-add          Add a new remote repository (by URL)
  remote-modify       Modify properties of a configured remote
  remote-delete       Delete a configured remote
  remote-ls           List contents of a configured remote
  remote-info         Show information about a remote app or runtime

 Build applications
  build-init          Initialize a directory for building
  build               Run a build command inside the build dir
  build-finish        Finish a build dir for export
  build-export        Export a build dir to a repository
  build-bundle        Create a bundle file from a ref in a local repository
  build-import-bundle Import a bundle file
  build-sign          Sign an application or runtime
  build-update-repo   Update the summary file in a repository
  build-commit-from   Create new commit based on existing ref
  repo                Print information about a repo

Help Options:
  -h, --help             Show help options

Application Options:
  --version              Print version information and exit
  --default-arch         Print default arch and exit
  --supported-arches     Print supported arches and exit
  --gl-drivers           Print active gl drivers and exit
  -v, --verbose          Print debug information during command processing, -vv for more detail
  --ostree-verbose       Print OSTree debug information during command processing
$ flatpak <command> --help

Dernière mise à jour: March 8, 2020