加入收藏 | 设为首页 | 会员中心 | 我要投稿 东莞站长网 (https://www.0769zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

如何在Linux上安装并启用Flatpak支持?

发布时间:2019-04-24 02:47:40 所属栏目:Windows 来源:Magesh Maruthamuthu
导读:目前,我们都在使用 Linux 发行版的官方软件包管理器来安装所需的软件包。 在 Linux 中,它做得很好,没有任何问题。(它不打折扣地很好的完成了它应该做的工作) 但在一些方面它也有一些限制,所以会让我们考虑其他替代解决方案来解决。 是的,默认情况下

如果要查看已配置仓库中的可用软件包的列表(它将显示所有软件包,如应用程序和运行环境),运行以下命令:

  1. $ flatpak remote-ls | head -10
  2.  
  3. org.freedesktop.GlxInfo gnome-apps
  4. org.gnome.Books gnome-apps
  5. org.gnome.Builder gnome-apps
  6. org.gnome.Calculator gnome-apps
  7. org.gnome.Calendar gnome-apps
  8. org.gnome.Characters gnome-apps
  9. org.gnome.Devhelp gnome-apps
  10. org.gnome.Dictionary gnome-apps
  11. org.gnome.Documents gnome-apps
  12. org.gnome.Epiphany gnome-apps

仅列出应用程序:

  1. $ flatpak remote-ls --app

列出特定的仓库应用程序:

  1. $ flatpak remote-ls gnome-apps

如何从 flatpak 安装包?

运行以下命令从 flatpak 仓库安装软件包:

  1. $ sudo flatpak install flathub com.github.muriloventuroso.easyssh
  2.  
  3. Required runtime for com.github.muriloventuroso.easyssh/x86_64/stable (runtime/org.gnome.Platform/x86_64/3.30) found in remote flathub
  4. Do you want to install it? [y/n]: y
  5. Installing in system:
  6. org.gnome.Platform/x86_64/3.30 flathub 4e93789f42ac
  7. org.gnome.Platform.Locale/x86_64/3.30 flathub 6abf9c0e2b72
  8. org.freedesktop.Platform.html5-codecs/x86_64/18.08 flathub d6abde36c0be
  9. com.github.muriloventuroso.easyssh/x86_64/stable flathub 337db43043d2
  10. permissions: ipc, network, wayland, x11, dri
  11. file access: home, xdg-run/dconf, ~/.config/dconf:ro
  12. dbus access: ca.desrt.dconf
  13. com.github.muriloventuroso.easyssh.Locale/x86_64/stable flathub af837356b222
  14. Is this ok [y/n]: y
  15. Installing: org.gnome.Platform/x86_64/3.30 from flathub
  16. [####################] 1 metadata, 14908 content objects fetched; 228018 KiB transferred in 364 seconds
  17. Now at 4e93789f42ac.
  18. Installing: org.gnome.Platform.Locale/x86_64/3.30 from flathub
  19. [####################] 4 metadata, 1 content objects fetched; 16 KiB transferred in 2 seconds
  20. Now at 6abf9c0e2b72.
  21. Installing: org.freedesktop.Platform.html5-codecs/x86_64/18.08 from flathub
  22. [####################] 26 metadata, 131 content objects fetched; 2737 KiB transferred in 8 seconds
  23. Now at d6abde36c0be.
  24. Installing: com.github.muriloventuroso.easyssh/x86_64/stable from flathub
  25. [####################] 191 metadata, 3633 content objects fetched; 24857 KiB transferred in 117 seconds
  26. Now at 337db43043d2.
  27. Installing: com.github.muriloventuroso.easyssh.Locale/x86_64/stable from flathub
  28. [####################] 3 metadata, 1 content objects fetched; 14 KiB transferred in 2 seconds
  29. Now at af837356b222.

所有已安装的应用程序都将放在以下位置:

  1. $ ls /var/lib/flatpak/app/
  2. com.github.muriloventuroso.easyssh

如何运行已安装的应用程序?

运行以下命令以启动所需的应用程序,确保替换为你的应用程序名称:

  1. $ flatpak run com.github.muriloventuroso.easyssh

如何查看已安装的应用程序?

运行以下命令来查看已安装的应用程序:

  1. $ flatpak list
  2. Ref Options
  3. com.github.muriloventuroso.easyssh/x86_64/stable system,current
  4. org.freedesktop.Platform.html5-codecs/x86_64/18.08 system,runtime
  5. org.gnome.Platform/x86_64/3.30 system,runtime

如何查看有关已安装应用程序的详细信息?

(编辑:东莞站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!