Bom, se precisarmos listar os aplicativos flatpak instalados numa distro, basta apenas digitar no terminal o comando
flatpak list
e logo aparece uma lista mostrando todos os aplicativos instalados no sistema e mais algumas informações tipo assim:
Name Application ID Version Branch Installation
Ciano com.github.robertsanseries.ciano 0.2.4 stable system
Video Downloader com.github.unrud.VideoDownloader 0.8.6 stable system
GreenWithEnvy com.leinardi.gwe 0.15.4 stable system
OBS Studio com.obsproject.Studio 27.0.1 stable system
Transmission com.transmissionbt.Transmission 3.00 stable system
youtubedl-gui io.github.JaGoLi.ytdl_gui 3.0 stable system
Color Picker nl.hjdskes.gcolor3 2.4.0 stable system
Audacity org.audacityteam.Audacity 3.0.4 stable system
Codecs org.audacityteam.Audacity.Codecs stable system
Chromium Web Browser org.chromium.Chromium 92.0.4515.159 stable system
Codecs org.chromium.Chromium.Codecs stable system
YOGA Image Optimizer org.flozz.yoga-image-optimizer 1.0.0 stable system
TAP-plugins …freedesktop.LinuxAudio.Plugins.TAP 1.0.1 20.08 system
SWH …freedesktop.LinuxAudio.Plugins.swh 0.4.17 20.08 system
Freedesktop Platform org.freedesktop.Platform 20.08.14 20.08 system
Mesa org.freedesktop.Platform.GL.default 21.1.4 20.08 system
Intel …g.freedesktop.Platform.VAAPI.Intel 20.08 system
ffmpeg-full …g.freedesktop.Platform.ffmpeg-full 20.08 system
openh264 org.freedesktop.Platform.openh264 2.1.0 2.0 system
GNU Image Manipulatio… org.gimp.GIMP 2.10.24 stable system
Manual org.gimp.GIMP.Manual 2.10 system
GNOME Application Pla… org.gnome.Platform 3.38 system
GNOME Application Pla… org.gnome.Platform 40 system
Inkscape org.inkscape.Inkscape 1.1 stable system
Adwaita theme org.kde.KStyle.Adwaita 5.15 system
KDE Application Platf… org.kde.Platform 5.15 system
QGnomePlatform …g.kde.PlatformTheme.QGnomePlatform 5.15 system
QtSNI org.kde.PlatformTheme.QtSNI 5.15 system
QGnomePlatform-decora… …coration.QGnomePlatform-decoration 5.15 system
Kdenlive org.kde.kdenlive 21.08.0 stable system
OpenShot Video Editor org.openshot.OpenShot 2.6.0 stable system
Telegram Desktop org.telegram.desktop 2.9.3 stable system
VLC org.videolan.VLC 3.0.16 stable system
Mas se quisermos somente informações referentes a apenas uma coluna basta digitarmos o comando
flatpak list --columns=‘nome-da-coluna01-sem-aspas’,‘nome-da-coluna02-sem-aspas’,etc
Por exemplo: se for digitado o seguinte comando no terminal
flatpak list --columns=name
O resultado será esse:
Name
Ciano
Video Downloader
GreenWithEnvy
OBS Studio
Transmission
youtubedl-gui
Color Picker
Audacity
Codecs
Chromium Web Browser
Codecs
YOGA Image Optimizer
TAP-plugins
SWH
Freedesktop Platform
Mesa
Intel
ffmpeg-full
openh264
GNU Image Manipulation Program
Manual
GNOME Application Platform version 3.38
GNOME Application Platform version 40
Inkscape
Adwaita theme
KDE Application Platform
QGnomePlatform
QtSNI
QGnomePlatform-decoration
Kdenlive
OpenShot Video Editor
Telegram Desktop
VLC
E se quisermos as informações apenas dos aplicativos sem as dependências aparecerem na lista, basta colocar a flag --app logo após list. Onde, por exemplo, ficaria assim:
flatpak list --app --columns=name
E a saída seria essa:
Name
Ciano
Video Downloader
GreenWithEnvy
OBS Studio
Transmission
youtubedl-gui
Color Picker
Audacity
Chromium Web Browser
YOGA Image Optimizer
GNU Image Manipulation Program
Inkscape
Kdenlive
OpenShot Video Editor
Telegram Desktop
VLC
Ou seja, pra cada coluna ou sequência de colunas, pode-se obter os valores separados e assim trabalhar com eles pra qualquer finalidade.
A informação que eu gostaria de obter é a seguinte: Tem alguma forma de fazer essa mesma manipulação das informações obtidas no snap?
Eu procurei no site Snapcraft e olhei a documentação, mas não encontrei nada parecido com isso. Pesquisei na internet e só encontro os comandos básicos pra instalar, deletar ou atualizar os snaps. Encontrei alguns outros comandos mais refinados, mas não é o que eu preciso. Bom, pelo menos, o modo pateta estava desligado (eu acho).
Alguém poderia me ajudar?
Desde já agradeço.