云网牛站
所在位置:首页 > Linux教程 > 去Flathub安装Flatpak应用非常方便,附安装方法

去Flathub安装Flatpak应用非常方便,附安装方法

2018-10-02 12:18:53作者:ywnz稿源:云网牛站

Flathub使用Flatpak格式打包,它是一个第三方的应用程序库。如果你的Linux系统安装Flatpak后就可以启用Flathub了,它是托管Flatpak应用的集中地。目前GNOME 3.30桌面环境已作为Flatpak runtimes上架到Flathub中,从该网站可以下载安装GNOME 3.30到GNU/Linux发行版中。

 

在各大Linux发行版中安装Flatpak请看在Linux系统中安装Flatpak教程。如果你使用的是Fedora Workstation等版本已经默认安装了,启用Flathub就行了。支持的Linux发行版本相当多,比如深度操作系统、Ubuntu、Fedora、Linux Mint、OpenSuSE、Red Hat Enterprise Linux、CentOS、Arch Linux、Debian GNU/Linux、Gentoo Linux、Solus、Endless OS、Alpine Linux、Mageia、elementary、Raspbian和Pop!_OS等。

 

相关链接

Flathub网站

去Flathub安装Flatpak应用非常方便,附安装方法

 

Flathub说明:Apps for Linux, right here

Welcome to Flathub, the home of hundreds of apps which can be easily installed on any Linux distribution. Browse the apps online, from your app center or the command line.

 

安装示例:

1.GIMP

flatpak install flathub org.gimp.GIMP

Run:

flatpak run org.gimp.GIMP

2.Vim

flatpak install flathub org.vim.Vim

Run:

flatpak run org.vim.Vim

3.Steam

flatpak install flathub com.valvesoftware.Steam

Run:

flatpak run com.valvesoftware.Steam

4.Shotwell

flatpak install flathub org.gnome.Shotwell

Run:

flatpak run org.gnome.Shotwell

5.GNOME Fonts

flatpak install flathub org.gnome.font-viewer

Run:

flatpak run org.gnome.font-viewer

6.RetroArch

flatpak install flathub org.libretro.RetroArch

Run:

flatpak run org.libretro.RetroArch

 

附:Gentoo使用flatpak

1、创建/etc/portage/repos.conf/flatpak-overlay.conf:

[flatpak-overlay]

priority = 50

location = /usr/local/portage/flatpak-overlay

sync-type = git

sync-uri = https://github.com/fosero/flatpak-overlay.git

auto-sync = Yes

2、emerge --sync然后emerge flatpak

3、从网络安装:

flatpak install --from https://flathub.org/repo/appstream/org.kicad_pcb.KiCad.flatpakref

4、从文件安装:

从app应用站点:https://flathub.org/ 找到app,下载.flatpakref安装

5、从repository安装

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

flatpak install flathub com.visualstudio.code

6、运行

flatpak run com.visualstudio.code

 

附:flathub内应用安装的正确姿势

1.在flathub上面搜索应用并用提供命令安装后,一直会出现timeout,如下:

~$ flatpak install --from https://flathub.org/repo/appstream/com.obsproject.Studio.flatpakref

error: Can't load uri https://flathub.org/repo/appstream/com.obsproject.Studio.flatpakref: Timeout was reached

2.经过不断的探索,发现安装runtime和sdk是没有问题,安装命令如下:

~$ flatpak install flathub  org.gnome.Platform//3.26

Installing: org.gnome.Platform/x86_64/3.26 from flathub

[####################] 10 delta parts, 11 loose fetched; 141642 KiB transferred in 65 seconds

Installing: org.gnome.Platform.Locale/x86_64/3.26 from flathub

[####################] 5 delta parts, 1 loose fetched; 20822 KiB transferred in 17 seconds

~$ flatpak install flathub org.gnome.Sdk//3.26

Installing: org.gnome.Sdk/x86_64/3.26 from flathub

[####################] 19 delta parts, 10 loose fetched; 144926 KiB transferred in 62 seconds

Installing: org.gnome.Sdk.Locale/x86_64/3.26 from flathub

[####################] 5 delta parts, 1 loose fetched; 4657 KiB transferred in 9 seconds

3.突发使用了下面这种方法安装应用,结果不出意外,完全可以成功:

~$ flatpak install flathub com.obsproject.Studio

Required runtime for com.obsproject.Studio/x86_64/stable (org.kde.Platform/x86_64/5.9) is not installed, searching...

Found in remote flathub, do you want to install it? [y/n]: y

Installing: org.kde.Platform/x86_64/5.9 from flathub

[####################] 12 delta parts, 40 loose fetched; 226536 KiB transferred in 189 seconds

Installing: org.kde.Platform.Locale/x86_64/5.9 from flathub

[####################] 5 delta parts, 9 loose fetched; 25758 KiB transferred in 69 seconds

Installing: com.obsproject.Studio/x86_64/stable from flathub

[####################] 1 delta parts, 7 loose fetched; 12324 KiB transferred in 21 seconds

Installing: com.obsproject.Studio.Locale/x86_64/stable from flathub

[####################] 1 delta parts, 1 loose fetched; 13 KiB transferred in 2 seconds

 

flatpak已更新到1.0.2

当前flatpak已经更新到了1.0.2,你也可以下载源码(flatpak-1.0.2.tar.xz)进行安装。下面是发布详情:

The dbus proxy is now available in a separate git module, xdg-dbus-portal,which is imported into flatpak as a submodule. It is possible to build flatpak against the system xdg-dbus-portal instead, but this is not currently very useful as no other applications yet depend on xdg-dbus-portal.

Build regressions with older versions of glib have been fixed.

Flatpak ps now also tracks the pid the main process inside the sandbox.

Added flatpak override --reset to reset overrides for an app.

Added flatpak override --show to show overrides for an app.

flatpak install now automatically pick user or system based on the remote

name given (unless the remote exists in both).

flatpak uninstall --unused now does not remove SDKs if some installed app

refers to them.

Fixed bug where flatpak uninstall --unused prompted for uninstall twice.

Set IO class on the system helper to "idle", which should cause backgroun

updates to affect the system less.

Fixed regression in flatpak uninstall --no-related.

Better handling of empty collection ids in flatpak bundles.

Cleaned up some error messages.

Various documentation fixes and cleanups.

Updated translations.

 

相关主题

Flatpak的优势及发展历程:Linux应用程序的未来

精选文章
热门文章