在 Linux 中运行 .pkg 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11093123/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Run .pkg files in Linux
提问by Dinesh
Is it possible to run .pkg
files in Ubuntu or Fedora. If so, how do I start with it?
是否可以.pkg
在 Ubuntu 或 Fedora 中运行文件。如果是这样,我该如何开始?
What's .pkgfile? It's a file format used in Mac systems(Apple Inc.)
什么是.pkg文件?它是 Mac 系统(Apple Inc.)中使用的文件格式
Is there any alternatives which can run .pkg
files in Linux distros? ( specifically Ubuntu or Fedora, I'm using latest version in both distros).
有没有可以.pkg
在 Linux 发行版中运行文件的替代方案?(特别是 Ubuntu 或 Fedora,我在两个发行版中都使用最新版本)。
采纳答案by sarnold
You can unpack the Xar format using the xar
archiver; perhaps the ark
archive front-end can also handle the Xar format, as it links against libarchive12
, which provides read-only support for the Xar format.
您可以使用xar
存档器解压缩 Xar 格式;也许ark
档案前端也可以处理 Xar 格式,因为它链接到libarchive12
,它提供对 Xar 格式的只读支持。
OS X uses the Mach-O executable format, while Linux uses ELF. (Okay, Linux can also read some archaic a.out formatted files too, but this format is effectively dead on modern Linux systems.) There is an experimental Mach-O loader for Linux, but it sure sounds like a toyat this point. (You'd also need the librariesthat applications use in order to actually run programs-- that'd be another complication.)
OS X 使用 Mach-O 可执行格式,而 Linux 使用ELF。(好吧,Linux 也可以读取一些过时的a.out 格式文件,但这种格式在现代 Linux 系统上实际上已经失效。)有一个用于 Linux 的实验性 Mach-O 加载器,但在这一点上它确实听起来像一个玩具。(您还需要应用程序使用的库才能实际运行程序——这将是另一个复杂问题。)
So: Yes, you can unpack them. No, you cannot simply run OS X applications on Linux.
所以:是的,你可以打开它们。不,您不能简单地在 Linux 上运行 OS X 应用程序。