自制软件、macports 或其他软件包安装工具的区别/用法是什么? [英] What is the difference/usage of homebrew, macports or other package installation tools?

查看:31
本文介绍了自制软件、macports 或其他软件包安装工具的区别/用法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近刚从 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.

  1. 就像@user475443 指出的那样,MacPorts 有更多的包.使用 brew,您很快就会发现自己陷入困境,因为您需要的公式不存在.

  1. 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 非常稳定,8 年来我从未遇到过问题,我的整个 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.

Rubists 喜欢用 Ruby 重写一切,因为他们唯一放心的就是 Ruby 本身.

Rubists like to rewrite everything in Ruby, because the only thing they are at ease is Ruby itself.

这篇关于自制软件、macports 或其他软件包安装工具的区别/用法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆