134******40
deepin
2017-07-26 02:33 本帖最后由 jdocker 于 2017-7-25 18:39 编辑
Introduction to Flatpak
Flatpak is a technology for building, distributing, installing and running applications. It is primarily targeted at the Linux desktop, although it can also be used as the basis for application distribution in other contexts, such as embedded systems.
Flatpak has been designed and implemented with a number of goals:
Allow applications to be installed on any Linux distribution.
Provide consistent environments for applications, to facilitate testing and reduce bugs.
Decouple applications from the operating system, so that applications don’t depend on specific versions of each distribution.
Allow applications to bundle their own dependencies, so that they can use libraries that aren’t provided by a Linux distribution, and so they can depend on specific versions or even patched versions of a library.
Increase the security of Linux desktops, by isolating applications in sandboxes.
从文档描述看,flatpak主要目的是用于桌面,但是snap隔离的更加彻底一些,甚至连内核都可以封装进来,原理更像是docker。不过说flatpak仅仅专注桌面应用就有点以偏概全了,底层应用只要相互之间有依赖,都能够通过这种方式封装。例如有个库就是提供与网络打交道有关系的接口,而这个库又调用了10多个其他库。而这10多个其他库又不被其他程序调用,完全可以封装起来作为服务器组件使用。那么这个服务器组件就不会被其他程序干扰。你再封装一个服务器组件,有调用了好几个库文件,这几个库文件与前面封装的有相同的库但是库文件有版本差异,我依旧可以封装起来。然后有一个identifiier,其他程序可以通过这标签访问这些基础库。
https://bbs.deepin.org/post/143170
snap是既可以用于底层又可以用于桌面应用的,flatpak不是,flatpak专注于桌面。所以楼主的期望很难实现了。 ...
Introduction to Flatpak
Flatpak is a technology for building, distributing, installing and running applications. It is primarily targeted at the Linux desktop, although it can also be used as the basis for application distribution in other contexts, such as embedded systems.
Flatpak has been designed and implemented with a number of goals:
Allow applications to be installed on any Linux distribution.
Provide consistent environments for applications, to facilitate testing and reduce bugs.
Decouple applications from the operating system, so that applications don’t depend on specific versions of each distribution.
Allow applications to bundle their own dependencies, so that they can use libraries that aren’t provided by a Linux distribution, and so they can depend on specific versions or even patched versions of a library.
Increase the security of Linux desktops, by isolating applications in sandboxes.
从文档描述看,flatpak主要目的是用于桌面,但是snap隔离的更加彻底一些,甚至连内核都可以封装进来,原理更像是docker。不过说flatpak仅仅专注桌面应用就有点以偏概全了,底层应用只要相互之间有依赖,都能够通过这种方式封装。例如有个库就是提供与网络打交道有关系的接口,而这个库又调用了10多个其他库。而这10多个其他库又不被其他程序调用,完全可以封装起来作为服务器组件使用。那么这个服务器组件就不会被其他程序干扰。你再封装一个服务器组件,有调用了好几个库文件,这几个库文件与前面封装的有相同的库但是库文件有版本差异,我依旧可以封装起来。然后有一个identifiier,其他程序可以通过这标签访问这些基础库。
Reply Like 0 View the author


中文 



我觉得可以这样,把系统应用打包成Flatpak,用户应用默认是deb,但是也允许用户自己装Flatpak