Appimage flatpak snap

This commit is contained in:
2020-03-08 12:56:41 +01:00
parent f9ae910168
commit d27b205618
3 changed files with 1034 additions and 2 deletions

View File

@@ -1,2 +1,92 @@
# AppImage # AppImage
### Utilisation:
##### Rendre exécutable:
```bash
$ mkdir ~/.bin
$ chmod +x Name.appimage
$ mv Name.appimage ~/.bin
```
##### Lancer:
```bash
$ ./Name.appimage
```
##### Ajouter au PATH:
On regroupe toutes les AppImages dans `~/.bin`
```bash
PATH="$HOME/.bin"
```
##### Fichier Desktop:
https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html
```bash
[Desktop Entry]
Name=Hypnos
Exec=hypnos %F
Icon=hypnos
Type=Application
Categories=Audio;AudioVideo;
Comment=Music Player and Library
MimeType=inode/directory;audio/flac;
Name[en]=Hypnos
Terminal=false
StartupNotify=true
NoDisplay=false
```
à mettre dans `/usr/share/applications/[your_app].desktop` ou
`/home/bruno/.local/share/applications/[your_app].desktop`
https://appimage.org/
https://docs.appimage.org/
### Mettre-à-jour les AppImages:
#### AppImageUpdate
AppImageUpdate consiste en 2 outils:
- appimageupdatetool (CLI)
- AppImageUpdate (interface en Qt)
Pour que AppImageUpdate fonctionne, il faut que **Update information** soit intégré dans l'AppImage.
https://github.com/AppImage/AppImageUpdate
Le daemon appimaged intègre AppImages avec le système 'menus, icones, MIME types)
(dispo en package ou AppImage)
https://github.com/AppImage/appimaged/releases/continuous
#### AppImageLauncher
AppImageLauncher est un outil pour installer, mettre-à-jour et supprimer les AppImages.
https://github.com/TheAssassin/AppImageLauncher/releases/continuous
- AppImageLauncher (deb)
- AppImageLauncher Lite (AppImage)
```bash
$ ./appimagelauncher-lite-2.1.2-travis968-346f011-x86_64.AppImage install
Installing AppImageLauncher Lite
Created symlink /home/bruno/.config/systemd/user/default.target.wants/appimagelauncherd.service → /home/bruno/.local/lib/appimagelauncher-lite/systemd/appimagelauncherd.service.
AppImageLauncher Lite has been installed successfully.
```
### Applications ApppImage:
https://appimage.github.io/apps/

View File

@@ -1 +1,451 @@
# flatpak # flatpak
### Installation:
##### Solus
```bash
$ sudo eopkg install flatpak xdg-desktop-portal-gtk
```
##### Ubuntu
```bash
$ sudo apt install flatpak
$ sudo apt install gnome-software-plugin-flatpak
```
##### Debian
```bash
$ apt install flatpak
$ apt install gnome-software-plugin-flatpak
```
##### Mint
intégré depuis Mint 18.3
### Utilisation:
##### Version de flatpak:
```bash
# solus
$ flatpak --version
Flatpak 1.0.9
# stable (13-02-2020)
1.6.2
```
##### Liste des remotes:
```bash
$ flatpak remotes
Name Options
flathub system
```
##### Ajouter un remote:
```bash
$ flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
```
##### Supprimer un remote:
```bash
$ flatpak remote-delete flathub
```
##### Lister le contenu d'un remote:
```bash
$ 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:
```bash
$ 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:
```bash
$ 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)
```bash
$ flatpak install gimp
```
##### Lancer une application:
```bash
$ flatpak run org.gimp.GIMP
```
##### Mettre-à-jour GIMP:
```bash
$ 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:
```bash
$ flatpak update
Looking for updates...
```
Répondre **yes** à toutes les questions:
```bash
$ flatpak update --assumeyes
$ flatpak update -y
```
##### Liste des applications et runtimes installés:
```bash
$ 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:
```bash
$ 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:
```bash
$ 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:
```bash
$ flatpak uninstall org.gimp.GIMP
```
##### Info sur une application:
```bash
$ 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:
```bash
$ flatpak uninstall --unused
```
##### Réparer l'installation locale:
```bash
$ 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:
```bash
$ flatpak permission-reset org.gimp.GIMP
```
##### *Voir les logs:*
```bash
$ flatpak history
```
##### Installer une ancienne version:
```bash
$ 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:
```bash
$ 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:
```bash
$ 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:
```bash
$ 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
```
```bash
$ flatpak <command> --help
```

View File

@@ -1 +1,493 @@
# snap # snap
### Installation:
##### Installer snap sur Solus:
installé par défaut depuis Solus 3
sinon
```bash
$ sudo eopkg up
$ sudo eopkg install snapd
$ sudo reboot
```
##### Installer snap sur ubuntu:
installé par défaut depuis Mint 16.04
```bash
$ sudo apt update
$ sudo apt install snapd
# logout / restart
```
##### Installer snap sur Mint:
disponible depuis Mint 18.2
```bash
$ sudo apt update
$ sudo apt install snapd
# logout / restart
```
##### Installer snap sur Debian:
disponible depuis Debian 9
```bash
$ sudo apt update
$ sudo apt install snapd
# logout / restart
```
##### Tester l'installation:
```bash
$ sudo snap install hello-world
hello-world 6.3 from Canonical✓ installed
$ hello-world
Hello World!
```
##### Installer le Snap Store:
```bash
$ sudo snap install snap-store
```
### Utilisation:
##### Version courante de snap:
```bash
$ snap version
snap 2.39.3
snapd 2.39.3
series 16
solus 4.1
kernel 5.5.6-149.current
```
Rechercher une appli:
```bash
$ snap find "media player"
Name Version Publisher Notes Summary
vlc 3.0.8 videolan✓ - The ultimate media player
foobar2000 1.5.2 mmtrt - foobar2000 is an advanced freeware audio player.
tizonia 0.18.0 tizonia - Cloud music from the Linux terminal
minidlna-escoand 1.2.1snap1 escoand - server software with the aim of being fully compliant with DLNA/UPnP clients.
audio-recorder 3.0.5+rev1432+pkg-7b07 brlin - A free audio-recorder for Linux (EXTREMELY BUGGY)
mpv 0.26.0 casept - a free, open source, and cross-platform media player.
```
##### Info sur un snap:
```bash
$ snap info chromium
name: chromium
summary: Chromium web browser, open-source version of Chrome
publisher: Canonical✓
contact: https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bugs?field.tag=snap
license: unset
description: |
An open-source browser project that aims to build a safer, faster, and more stable way for all
Internet users to experience the web.
commands:
- chromium.chromedriver
- chromium
snap-id: XKEcBqPM06H1Z7zGOdG5fbICuf8NWK5R
tracking: stable
refresh-date: today at 10:16 CET
channels:
stable: 80.0.3987.132 2020-03-05 (1043) 160MB -
candidate: 80.0.3987.132 2020-03-04 (1043) 160MB -
beta: 81.0.4044.43 2020-03-05 (1045) 161MB -
edge: 81.0.4044.17 2020-02-14 (1028) 161MB -
installed: 80.0.3987.132 (1043) 160MB -
```
```bash
# plus d'info sur le snap
$ snap info chromium --color=always --verbose
```
Installer un snap:
```bash
$ snap install chromium
chromium 80.0.3987.132 from Canonical✓ installed
```
```bash
$ sudo snap install --channel=edge chromium
$ sudo snap switch --channel=stable chromium
```
##### Lancer un snap:
Les snap sont installés dans `/snap/bin`. Ajouter `/snap/bin` au $PATH si nécessaire.
Certaines distributions utilisent `/var/lib/snapd/snap/bin`
```bash
$ which chromium
/snap/bin/chromium
```
##### Liste des snaps installés:
```bash
$ snap list
Name Version Rev Tracking Publisher Notes
chromium 80.0.3987.132 1043 stable canonical✓ -
core 16-2.43.3 8689 stable canonical✓ core
core18 20200124 1668 stable canonical✓ base
gnome-3-28-1804 3.28.0-16-g27c9498.27c9498 116 stable canonical✓ -
gtk-common-themes 0.1-28-g1503258 1440 stable canonical✓ -
odio 1.4.0 5 stable meniedri1 -
snap-store 20191114.a9948d5 209 stable canonical✓ -
snapd 2.43.3 6434 stable canonical✓ snapd
```
```bash
$ snap list --all
Name Version Rev Tracking Publisher Notes
chromium 80.0.3987.132 1043 stable canonical✓ -
core 16-2.43.3 8689 stable canonical✓ core
core18 20200124 1668 stable canonical✓ base
core18 20190709 1066 stable canonical✓ base,disabled
gnome-3-28-1804 3.28.0-16-g27c9498.27c9498 116 stable canonical✓ -
gnome-3-28-1804 3.28.0-10-gaa70833.aa70833 67 stable canonical✓ disabled
gtk-common-themes 0.1-28-g1503258 1440 stable canonical✓ -
gtk-common-themes 0.1-22-gab0a26b 1313 stable canonical✓ disabled
odio 1.4.0 5 stable meniedri1 -
snap-store 20190723.daf5512 180 stable canonical✓ disabled
snap-store 20191114.a9948d5 209 stable canonical✓ -
snapd 2.39.2 3646 stable canonical✓ snapd,disabled
snapd 2.43.3 6434 stable canonical✓ snapd
```
##### Mises-à-jour:
Les snaps sont mis-à-jour automatiquement (dans les 6h après une révision).
On peut aussi chercher les m-à-j manuellement:
```bash
$ sudo snap refresh chromium
Mot de passe :
snap "chromium" has no updates available
$ sudo snap refresh --channel=beta vlc
```
Liste des snaps en attente de mise-à-jour:
```bash
$ snap refresh --list
All snaps up to date.
```
##### Date de la dernière et de la prochaine m-à-j:
```bash
$ snap refresh --time
timer: 00:00~24:00/4
last: today at 08:55 CET
next: today at 14:11 CET$ snap refresh --time
timer: 00:00~24:00/4
last: today at 08:55 CET
next: today at 14:11 CET
```
##### Voir les dernières modifications:
```bash
$ snap changes
error: no changes found
$ snap changes ID
```
Réinstaller la version précédente:
```bash
$ snap list --all chromium
Name Version Rev Tracking Publisher Notes
chromium 80.0.3987.122 1040 stable canonical✓ disabled
chromium 80.0.3987.132 1043 stable canonical✓ -
```
```bash
$ snap revert chromium
chromium reverted to 80.0.3987.122
# --revision= réinstaller une révision précise
```
```bash
$ snap list --all chromium
Name Version Rev Tracking Publisher Notes
chromium 80.0.3987.122 1040 stable canonical✓ -
chromium 80.0.3987.132 1043 stable canonical✓ disabled
```
```bash
$ snap refresh chromium
chromium 80.0.3987.132 from Canonical✓ refreshed
```
##### Liste de toutes les révisions disponibles:
```bash
$ snap list --all chromium
Name Version Rev Tracking Publisher Notes
chromium 80.0.3987.122 1040 stable canonical✓ disabled
chromium 80.0.3987.132 1043 stable canonical✓ -
```
##### Activer / désactiver des snaps:
```bash
$ snap disable chromium
chromium disabled
# Le snap reste disponible pour une réactivation.
```
```bash
$ snap list --all chromium
Name Version Rev Tracking Publisher Notes
chromium 80.0.3987.122 1040 stable canonical✓ disabled
chromium 80.0.3987.132 1043 stable canonical✓ disabled
```
```bash
$ snap enable chromium
chromium enabled
```
##### Supprimer un snap:
```bash
$ snap remove chromium
chromium removed
```
Supprimer uniquement 1 révision:
```bash
$ snap remove chromium --revision=1040
```
##### Voir les logs:
```bash
$ snap logs <service>
# -n= affiche un nombre de lignes(defaut:10)
# -f affichage au fil de l'eau
```
```bash
$ snap logs chromium
error: snap "chromium" has no services
```
##### Permissions:
```bash
$ snap connections chromium
Interface Plug Slot Notes
browser-support chromium:browser-sandbox :browser-support -
camera chromium:camera :camera -
content[gtk-3-themes] chromium:gtk-3-themes gtk-common-themes:gtk-3-themes -
content[icon-themes] chromium:icon-themes gtk-common-themes:icon-themes -
content[sound-themes] chromium:sound-themes gtk-common-themes:sound-themes -
cups-control chromium:cups-control :cups-control -
desktop chromium:desktop :desktop -
gsettings chromium:gsettings :gsettings -
home chromium:home :home -
joystick chromium:joystick :joystick -
mount-observe chromium:mount-observe - -
mpris - chromium:mpris -
network chromium:network :network -
network-bind chromium:network-bind :network-bind -
network-manager chromium:network-manager - -
opengl chromium:opengl :opengl -
password-manager-service chromium:password-manager-service - -
personal-files chromium:chromium-config :personal-files -
pulseaudio chromium:pulseaudio :pulseaudio -
raw-usb chromium:raw-usb - -
removable-media chromium:removable-media - -
screen-inhibit-control chromium:screen-inhibit-control :screen-inhibit-control -
u2f-devices chromium:u2f-devices :u2f-devices -
unity7 chromium:unity7 :unity7 -
upower-observe chromium:upower-observe :upower-observe -
x11 chromium:x11 :x11 -
```
Liste des interfaces:
```bash
$ snap interface
Name Summary
browser-support allows access to various APIs needed by modern web browsers
camera allows access to all cameras
content allows sharing code and data with other snaps
cups-control allows access to the CUPS control socket
desktop allows access to basic graphical desktop resources
desktop-legacy allows privileged access to desktop legacy methods
gsettings allows access to any gsettings item of current user
home allows access to non-hidden files in the home directory
joystick allows access to joystick devices
network allows access to the network
network-bind allows operating as a network service
opengl allows access to OpenGL stack
password-manager-service allows access to common password manager services
personal-files allows access to personal files or directories
pulseaudio allows operating as or interacting with the pulseaudio service
screen-inhibit-control allows inhibiting the screen saver
snapd-control allows communicating with snapd
system-observe allows observing all processes and drivers
u2f-devices allows access to u2f devices
unity7 allows interacting with Unity 7 services
upower-observe allows operating as or reading from the UPower service
wayland allows access to compositors supporting wayland protocol
x11 allows interacting with or running as an X11 server
```
##### Lire les options de configuration pour le snap:
```bash
$ snap get chromium
error: snap "chromium" has no configuration
```
##### Se connecter:
Ce n'est pas nécessaire sauf pour les achats et pour les développeurs.
```bash
$ snap login bruno@xxx.info
Personal information is handled as per our privacy notice at
https://www.ubuntu.com/legal/dataprivacy/snap-store
Password of "bruno@xxx.info":
Login successful
```
Afficher qui est connecté:
```bash
$ snap whoami
email: bruno@xxx.info
```
Snapshot:
```bash
$ snap saved
Set Snap Age Version Rev Size Notes
3 chromium 57.7m 80.0.3987.132 1043 34.4MB auto
```
### Aide:
```bash
$ snap --help
$ snap help --all
The snap command lets you install, configure, refresh and remove snaps.
Snaps are packages that work across many different Linux distributions,
enabling secure delivery and operation of the latest apps and utilities.
Usage: snap <command> [<options>...]
Commands can be classified as follows:
Basics (basic snap management):
find Find packages to install
info Show detailed information about snaps
install Install snaps on the system
list List installed snaps
remove Remove snaps from the system
...more (slightly more advanced snap management):
refresh Refresh snaps in the system
revert Reverts the given snap to the previous state
switch Switches snap to a different channel
disable Disable a snap in the system
enable Enable a snap in the system
History (manage system change transactions):
changes List system changes
tasks List a change's tasks
abort Abort a pending change
watch Watch a change in progress
Daemons (manage services):
services Query the status of services
start Start services
stop Stop services
restart Restart services
logs Retrieve logs for services
Commands (manage aliases):
alias Set up a manual alias
aliases List aliases in the system
unalias Remove a manual alias, or the aliases for an entire snap
prefer Enable aliases from a snap, disabling any conflicting aliases
Configuration (system administration and configuration):
get Print configuration options
set Change configuration options
wait Wait for configuration
Account (authentication to snapd and the snap store):
login Authenticate to snapd and the store
logout Log out of snapd and the store
whoami Show the email the user is logged in with
Permissions (manage permissions):
connections List interface connections
interface Show details of snap interfaces
connect Connect a plug to a slot
disconnect Disconnect a plug from a slot
Snapshots (archives of snap data):
saved List currently stored snapshots
save Save a snapshot of the current data
check-snapshot Check a snapshot
restore Restore a snapshot
forget Delete a snapshot
Other (miscellanea):
version Show version details
warnings List warnings
okay Acknowledge warnings
ack Add an assertion to the system
known Show known assertions of the provided type
Development (developer-oriented features):
run Run the given snap command
pack Pack the given directory as a snap
try Test an unpacked snap in the system
download Download the given snap
prepare-image Prepare a device image
For more information about a command, run 'snap help <command>'.
```
https://snapcraft.io/docs