After using LInux for 15 years, I recently switched to a Mac. I love the hardware (and finally I am able to print!), but I do miss apt-get / yum. Especially since I can replicate exactly what my production servers are running to my laptop.
I tried MacPorts, but the location of the config files are not the same as that on the server (eg, /etc/apache2/conf.d) and the way to start/restart servers (sudo service redis-server restart) is different ...
I haven't tried homebrew, but some say it could solve these problems, but it will break if and when you upgrade your Mac's OS.
What do you folks out there prefer?
I have been using homebrew since the time I was introduced to git. So, I guess I will just keep using it. I also think most of the people here just use homebrew because it's usually quicker than MacPorts.
Preetish Panda
Product, Marketing & Technology
The biggest plus point of Homebrew according to me is that it uses out of the box OS X packages to speed up the package installation and minimizes redundant libraries. Also it provides more up-to-date packages in comparison to MacPorts, as its hosting on gitbhub helps developers to easily contribute to the project. And Yes, there is a chance of getting packages broken while updating OS.
In case of MacPorts, you will get biggest repository of packages. Apart from this, because of its loose coupling with OS X, the installed packages are less affected by OS upgrade/update.
All that said, my vote goes to Homebrew. It's a trade off that you need to consider, while choosing either MacPorts or Homebrew.
Also try out Fink, if you are badly missing apt-get. Packages are available as binaries to save the compile time. But I would not recommend it owing to its outdated binaries. You would anyway end up compiling.