如何安装 flatpak 程序以便整个系统都可以使用?

如何安装 flatpak 程序以便整个系统都可以使用?

至少在我的 PopOS 安装中,当从 PopShop 安装时,如果从 deb 安装,则该程序可供所有用户使用,但对于 flatpak 安装则不是这样。我如何安装 flatpak 程序以便它可供多个用户使用?

当我尝试运行时flatpak install flathub net.xm1math.TexmakerProceed with these changes to the user installation? [Y/n]:我猜用户安装是默认的?

flatpak 文档我试过了,flatpak --system install flathub net.xm1math.Texmaker但是这给了我error: No remote refs found similar to ‘flathub’。为什么这个命令不起作用?

编辑:

添加 flathub ref 并在整个系统安装 GIMP 后,我现在有一堆重复的包:

Name                           Application ID                             Version    Branch Installation
Discord                        com.discordapp.Discord                     0.0.12     stable user
Spotify                        com.spotify.Client                         1.1.42.622 stable user
Freedesktop Platform           org.freedesktop.Platform                   20.08.0    20.08  user
default                        org.freedesktop.Platform.GL.default                   19.08  system
default                        org.freedesktop.Platform.GL.default                   19.08  user
default                        org.freedesktop.Platform.GL.default                   20.08  user
nvidia-450-66                  org.freedesktop.Platform.GL.nvidia-450-66             1.4    system
nvidia-450-66                  org.freedesktop.Platform.GL.nvidia-450-66             1.4    user
openh264                       org.freedesktop.Platform.openh264          2.1.0      2.0    system
openh264                       org.freedesktop.Platform.openh264          2.1.0      2.0    user
Freedesktop SDK                org.freedesktop.Sdk                        20.08.0    20.08  user
GNU Image Manipulation Program org.gimp.GIMP                              2.10.20    stable system
Manual                         org.gimp.GIMP.Manual                                  2.10   system
Manual                         org.gimp.GIMP.Manual                                  2.10   user
GNOME Application Platform ve… org.gnome.Platform                                    3.36   system
GNOME Application Platform ve… org.gnome.Platform                                    3.36   user
Pop Gtk theme                  org.gtk.Gtk3theme.Pop-dark                            3.22   system
Pop Gtk theme                  org.gtk.Gtk3theme.Pop-dark                            3.22   user
KDE Application Platform       org.kde.Platform                                      5.15   user
QGnomePlatform                 org.kde.PlatformTheme.QGnomePlatform                  5.15   user
QtSNI                          org.kde.PlatformTheme.QtSNI                           5.15   user
QGnomePlatform-decoration      …ylandDecoration.QGnomePlatform-decoration            5.15   user

编辑2:

关于上述内容,拥有像 nvidia 驱动程序这样的大型运行时的多个版本似乎很愚蠢......

所以我猜想每个用户的“refs”都是分开的,我很想删除我的用户,看看 PopShop 是否会默认使用另一个,但又不想把事情搞得太糟。

popshop 设置截图

答案1

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

相关内容