问题描述
我最近刚从Ubuntu切换到Mac.我对Mac在Ubuntu中没有方便的sudo apt-get
感到失望.我听说我应该使用自制软件,但是我不确定是自制软件还是macports做什么?
I've just recently switched to a Mac from Ubuntu. I was disappointed that mac doesn't have the convenient sudo apt-get
in Ubuntu. I've heard that I should use homebrew but I'm not exactly sure what homebrew or macports does?
推荐答案
MacPorts是必经之路.
MacPorts is the way to go.
-
就像@ user475443指出的那样,MacPorts还有许多其他软件包.有了brew,您很快就会发现自己被困,因为所需的公式不存在.
Like @user475443 pointed, MacPorts has many many more packages. With brew you'll find yourself trapped soon because the formula you need doesn't exist.
MacPorts是本机应用程序:C + TCL.您根本不需要Ruby.要在Mac OS X上安装Ruby,您可能需要MacPorts,因此只要使用MacPorts,您就会很高兴.
MacPorts is a native application: C + TCL. You don't need Ruby at all. To install Ruby on Mac OS X you might need MacPorts, so just go with MacPorts and you'll be happy.
MacPorts确实很稳定,八年来我从来没有遇到过问题,我的整个Unix生态系统都以此为继.
MacPorts is really stable, in 8 years I never had a problem with it, and my entire Unix ecosystem relay on it.
如果您是PHP开发人员,则可以安装Apache的最新版本(Mac OS X使用2.2),PHP和所需的所有扩展,然后使用一个命令将其全部升级.忘记对Homebrew做同样的事情.
If you are a PHP developer you can install the last version of Apache (Mac OS X uses 2.2), PHP and all the extensions you need, then upgrade all with one command. Forget to do the same with Homebrew.
MacPorts支持组.
MacPorts support groups.
foo@macpro:~/ port select --summary
Name Selected Options
==== ======== =======
db none db46 none
gcc none gcc42 llvm-gcc42 mp-gcc48 none
llvm none mp-llvm-3.3 none
mysql mysql56 mysql56 none
php php55 php55 php56 none
postgresql postgresql94 postgresql93 postgresql94 none
python none python24 python25-apple python26-apple python27 python27-apple none
如果同时安装了PHP55和PHP56(具有许多不同的扩展名),则只需一个命令即可在它们之间进行交换.所有相对扩展都是该组的一部分,它们将在所选组中被激活:php55或php56.我不确定Homebrew是否具有此功能.
If you have both PHP55 and PHP56 installed (with many different extensions), you can swap between them with just one command. All the relative extensions are part of the group and they will be activated within the chosen group: php55 or php56. I'm not sure Homebrew has this feature.
犹太人喜欢用Ruby重写所有内容,因为他们唯一可以放心的就是Ruby本身.
Rubists like to rewrite everything in Ruby, because the only thing they are at ease is Ruby itself.
这篇关于自制软件,macports或其他软件包安装工具的区别/用途是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!