在 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 06:56:31  来源:igfitidea点击:

Run .pkg files in Linux

linuxubuntufedora

提问by Dinesh

Is it possible to run .pkgfiles 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 .pkgfiles 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 xararchiver; perhaps the arkarchive 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 应用程序。