macos Mac OSX 中“能力”的等价物是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3554271/
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-10-21 07:11:09  来源:igfitidea点击:

What is the equivalent of "aptitude" in Mac OSX?

linuxmacosunixaptitude

提问by TIMEX

How to do "sudo apt-get install " on OSX?

如何在 OSX 上执行“sudo apt-get install”?

采纳答案by fletcher

There isn't an equivalent out of the box.

没有开箱即用的等价物。

You may want to take a look at MacPorts:

您可能想看看 MacPorts:

MacPorts, formerly called DarwinPorts, is a package management system that simplifies the installation of software on the Mac OS X and Darwin operating systems. It is a free/open source software project to simplify installation of other free/open source software. Similar in aim and function to Fink and the BSDs' ports collections, DarwinPorts was started in 2002 as part of the OpenDarwin project, with the involvement of a number of Apple Inc. employees including Landon Fuller, Kevin Van Vechten, and Jordan Hubbard.

MacPorts,以前称为 DarwinPorts,是一种软件包管理系统,可简化 Mac OS X 和 Darwin 操作系统上的软件安装。它是一个免费/开源软件项目,用于简化其他免费/开源软件的安装。与 Fink 和 BSD 的端口集合的目标和功能相似,DarwinPorts 于 2002 年作为 OpenDarwin 项目的一部分启动,有许多 Apple Inc. 员工参与其中,包括 Landon Fuller、Kevin Van Vechten 和 Jordan Hubbard。

http://en.wikipedia.org/wiki/MacPorts

http://en.wikipedia.org/wiki/MacPorts

http://www.macports.org/

http://www.macports.org/

回答by Norman Gray

Others have mentioned MacPortsand Homebrew; it might be worth noting the difference between them.

其他人提到了MacPortsHomebrew;可能值得注意的是它们之间的区别。

MacPorts works for me, happily enough. Butit has the very annoying feature that it wants to install everything. Thus on several occasions, I've had to drag it back from trying to install its own version of Perl, ignoring the system one, or TeX, and even gcc. Now, the reason for this is, I imagine, that if it were to rely on the system versions of these (or any preinstalled one in the case of TeX), there might be some version-skew issue that would cause something to break. And disk space is cheap. That's probably true, sort of, but it still seems a bit obsessive (and I'm not sure I want to use anything that's quite so dependent on specific versions). Sensible or not, it sets my teeth on edge every time it happens.

MacPorts 对我有用,很高兴。它有一个非常烦人的功能,它想安装所有东西。因此,有几次,我不得不将它从尝试安装自己的 Perl 版本拖回来,而忽略了系统一、TeX,甚至 gcc。现在,我想这样做的原因是,如果它依赖于这些的系统版本(或在 TeX 的情况下任何预安装的版本),则可能存在一些版本偏差问题,这会导致某些内容中断。而且磁盘空间很便宜。这可能是真的,有点,但它似乎仍然有点强迫症(我不确定我想使用任何非常依赖特定版本的东西)。无论是否明智,每次发生时它都会让我感到紧张。

Homebrew, in contrast, specifically aims not to duplicate tools that are already installed. When MacPorts does its install-the-world thing, I usually end up killing it and installing the package with the mad dependencies by hand, so I've never quite been driven to the point of using Homebrew, but I've been on the point of doing so, ever since I first heard about it.

相比之下,Homebrew 专门针对不复制已安装的工具。当 MacPorts 完成它的 install-the-world 事情时,我通常最终会杀死它并手动安装带有疯狂依赖项的包,所以我从来没有被驱使到使用 Homebrew 的地步,但我一直在这样做的意义,自从我第一次听说它。

回答by Andrei Serdeliuc ?

回答by chiborg

If you really want an apt-based package management, take a look at Fink. It's the "oldest" package manager on Mac OS X and I'm not sure if the packages are properly maintained anymore. But I'm using it successfully under Snow Leopard.

如果你真的想要一个基于 apt 的包管理,看看Fink。它是 Mac OS X 上“最古老”的包管理器,我不确定这些包是否已经得到妥善维护。但是我在 Snow Leopard 下成功地使用了它。

回答by Quentin

cp -r MyApplication.app /Applications/