我应该维护同一个 Flatpak 包的多个版本吗?

我应该维护同一个 Flatpak 包的多个版本吗?
#flatpak list
Name                                                          Application ID                                         Version               Branch             Installation
Authenticator                                                 com.github.bilelmoussaoui.Authenticator                3.32.2                stable             system
Skype                                                         com.skype.Client                                       8.51.0.72             stable             system
Freedesktop.org Application Platform version 1.6              org.freedesktop.Platform                               1.6                   1.6                system
Freedesktop Platform                                          org.freedesktop.Platform                               18.08.37              18.08              system
Freedesktop Platform                                          org.freedesktop.Platform                               19.08.3               19.08              system
default                                                       org.freedesktop.Platform.GL.default                                          19.08              system
nvidia-340-107                                                org.freedesktop.Platform.GL.nvidia-340-107                                   1.4                system
FFmpeg extension                                              org.freedesktop.Platform.ffmpeg                                              1.6                system
html5-codecs                                                  org.freedesktop.Platform.html5-codecs                                        18.08              system
openh264                                                      org.freedesktop.Platform.openh264                                            19.08              system
GNOME Application Platform version 3.34                       org.gnome.Platform                                                           3.34               system
Breeze Gtk theme                                              org.gtk.Gtk3theme.Breeze                                                     3.22               system

我可以卸载 Freedesktop.org 平台版本 1.6 和另外两个 Freedesktop 平台之一(哪一个?)而不破坏任何依赖关系吗?

编辑:

~$ sudo flatpak remove --unused


        ID                                       Arch            Branch
 1. [-] org.freedesktop.Platform.ffmpeg          x86_64          1.6
 2. [-] org.freedesktop.Platform                 x86_64          1.6
 3. [-] org.freedesktop.Platform.Locale          x86_64          1.6
 4. [-] org.freedesktop.Platform                 x86_64          19.08
 5. [-] org.freedesktop.Platform.Locale          x86_64          19.08

Uninstall complete.
error: Refusing to operate on a user installation as root! This can lead to incorrect file ownership and permission errors.
~$ flatpak remove --unused
Nothing unused to uninstall

编辑2:

$ flatpak update 
Looking for updates…
Required runtime for org.freedesktop.Platform.GL.nvidia-340-107/x86_64/1.4 (runtime/org.freedesktop.Platform/x86_64/1.6) found in remote flathub
Do you want to install it? [Y/n]: y


        ID                                       Arch            Branch          Op         Remote          Download
 1. [✓] org.freedesktop.Platform                 x86_64          1.6             i          flathub                  184,4 MB / 395,4 MB
 2. [✓] org.freedesktop.Platform.ffmpeg          x86_64          1.6             i          flathub                    2,9 MB / 2,9 MB
 3. [✓] org.freedesktop.Platform.Locale          x86_64          1.6             i          flathub                  620,0 kB / 177,1 MB
 4. [✓] org.gnome.Platform                       x86_64          3.34            u          flathub                  253,8 kB / 318,4 MB
 5. [✓] org.gnome.Platform.Locale                x86_64          3.34            u          flathub         1.0 kB / 322,7 MB

Changes complete.
$ flatpak remove --unused


        ID                                       Arch            Branch
 1. [-] org.freedesktop.Platform.ffmpeg          x86_64          1.6
 2. [-] org.freedesktop.Platform                 x86_64          1.6
 3. [-] org.freedesktop.Platform.Locale          x86_64          1.6

Uninstall complete.
$ flatpak remove --unused
Nothing unused to uninstall
$ flatpak update 
Looking for updates…
Required runtime for org.freedesktop.Platform.GL.nvidia-340-107/x86_64/1.4 (runtime/org.freedesktop.Platform/x86_64/1.6) found in remote flathub
Do you want to install it? [Y/n]: y


        ID                                         Arch             Branch           Remote            Download
 1. [✓] org.freedesktop.Platform                   x86_64           1.6              flathub           184,4 MB / 395,4 MB
 2. [✓] org.freedesktop.Platform.ffmpeg            x86_64           1.6              flathub             2,9 MB / 2,9 MB
 3. [✓] org.freedesktop.Platform.Locale            x86_64           1.6              flathub           620,0 kB / 177,1 MB

Installation complete.
$ flatpak remove --unused


        ID                                       Arch            Branch
 1. [-] org.freedesktop.Platform.ffmpeg          x86_64          1.6
 2. [-] org.freedesktop.Platform                 x86_64          1.6
 3. [-] org.freedesktop.Platform.Locale          x86_64          1.6

Uninstall complete.
$ flatpak update 
Looking for updates…
Required runtime for org.freedesktop.Platform.GL.nvidia-340-107/x86_64/1.4 (runtime/org.freedesktop.Platform/x86_64/1.6) found in remote flathub
Do you want to install it? [Y/n]: 


        ID                                         Arch             Branch           Remote            Download
 1. [✓] org.freedesktop.Platform                   x86_64           1.6              flathub           184,4 MB / 395,4 MB
 2. [✓] org.freedesktop.Platform.ffmpeg            x86_64           1.6              flathub             2,9 MB / 2,9 MB
 3. [✓] org.freedesktop.Platform.Locale            x86_64           1.6              flathub           620,0 kB / 177,1 MB

Installation complete.

答案1

您拥有多个版本的(运行时)软件包的原因是,您安装的应用程序(无论如何,一次安装)与不同的版本捆绑在一起。例如,Skype应用程序使用org.freedesktop.平台/x86_64/18.08版本,如下所示:

$ flatpak info com.skype.Client

Skype - Call and message skype users, with video chat support

        ID: com.skype.Client
       Ref: app/com.skype.Client/x86_64/stable
      Arch: x86_64
    Branch: stable
   Version: 8.51.0.72
   License: LicenseRef-proprietary
Collection: org.flathub.Stable
  Download: 1.4 MB
 Installed: 3.6 MB
   Runtime: org.freedesktop.Platform/x86_64/18.08

       Sdk: org.freedesktop.Sdk/x86_64/18.08
    Commit: 33d87117f3d06e0e91bc47bc4d8f588707817bfb278312778f9621a75ed76acd
    Parent: 3c349350580315d12c7038848a1077c0d9bfdf2ae34c77109935b559a20caebf
   Subject: Revert "Update skypeforlinux-64.deb to 8.51.0.92" (bc3e41a3)
      Date: 2019-09-02 11:15:01 +0000

有时,Flatpak 不太擅长自行清理。我的系统有 (3) 个您提到的运行时版本,目前都在使用中。您可以尝试运行flatpak remove --unused,它是应该卸载任何不应该存在的软件包,但这种方法并不 100% 可靠。如果您不小心删除了安装所需的运行时,它将在系统下次运行 Flatpak 维护或您flatpak update手动运行时得到修复。

答案2

理想情况下,您可以卸载 freedesktop。我确信您所要做的就是安装 GNOME 软件管理器并从那里管理这些应用程序。不过,我对 Chrome OS 和 Mac OSX 的了解比 Xfce4 多。

抱歉,如果我帮不上忙。我做些研究后也许能给你更好的答案。

相关内容