Flatpak(http://flatpak.org/) 的开发团队宣布了 Flatpak 桌面应用框架已经可用了。 Flatpak (以前在开发时名为 xdg-app)为应用提供了捆绑为一个 Flatpak 软件包的能力,可以让应用在很多 Linux 发行版上都以轻松而一致的体验来安装和运行。将应用程序捆绑成 Flatpak 为其提供了沙盒安全环境,可以将它们与操作系统和彼此之间相互隔离。查看 Flatpak 网站(http://flatpak.org/)上的发布公告(http://flatpak.org/press/2016-06-21-flatpak-released.html)来了解关于 Flatpak 框架技术的更多信息。
在 Fedora 中安装 Flatpak
如果用户想要运行以 Flatpak 格式打包的应用,在 Fedora 上安装是很容易的,Flatpak 格式已经可以在官方的 Fedora 23 和 Fedora 24 仓库中获得。下面介绍Flatpak在 Fedora 上安装的完整细节,同时也有如何在 Arch、 Debian、Mageia 和 Ubuntu 中安装的方法。许多的应用已经使用 Flatpak 打包构建了,这包括 LibreOffice、Inkscape 和 GIMP。
安装Flatpak详细教程:
Getting Flatpak
Flatpak is available for the most common Linux distributions. After installing it, it is necessary to log out and in again for Flatpak apps to appear in your desktop.
Arch
A flatpak package is available in the official repositories. flatpak-git is also available in the AUR for the latest development snapshot.
Debian
An in-development official flatpak package is available in Debian Experimental.
For Debian Jessie, there is a custom apt repository available. To install, run the following as root:
wget -O - https://sdk.gnome.org/apt/debian/conf/alexl.gpg.key|apt-key add -
echo "deb [arch=amd64] https://sdk.gnome.org/apt/debian/ jessie main" > /etc/apt/sources.list.d/flatpak.list
apt install apt-transport-https
apt update
apt install flatpak
Fedora
A flatpak package is available for Fedora 23 and newer. To install, run the following:
sudo dnf install flatpak
Gentoo
An unofficial overlay is available here(https://github.com/fosero/flatpak-overlay)
Mageia
A flatpak package is available in Cauldron. To install, run the following as root:
If using DNF
dnf install flatpak
If using urpmi
urpmi flatpak
Ubuntu
A flatpak package is available for Ubuntu 16.04 using a PPA. To install, run:
sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update
sudo apt install flatpak
对应用开发者
如果你是一个应用开发者,Flatpak 网站也包含许多有关于使用 Flatpak 打包和分发应用程序(http://flatpak.org/developer.html)的重要资料。这些资料中包括了使用 Flakpak SDK 构建独立的、沙盒化的 Flakpak 应用程序的信息。