Posts Tagged ‘macports’

Battle of the Package Managers!

June 10, 2011 by markszymanski. 0 comments

What is a package manager?

A package manager is a software tool that is used to install other software. This software is often referred to as “packages,” hence the name. Package managers exist on many Linux or UNIX-like operating systems. Before package managers existed, people were stuck with installing software from source. This presented two main problems:

  1. In order to update the software, you had to download the source for every program that was out of date, and then compile and install it again.
  2. If a program had any dependencies, you’d have to hunt down that dependency, and then that dependency’s dependencies, and so on, eventually creating something called “dependency hell.”

Package managers were created to solve these problems. With them, you can run a command to install, uninstall, search for, or update packages. Many Linux and UNIX-like operating systems have package managers built in. For instance, Ubuntu has aptitude and FreeBSD has the ports system. Mac OS X, however, does not have any built in package manager. This lack of a built in package manager has prompted people to create their own. There are two popular package mangers for OS X, Homebrew and MacPorts, each with their own strengths and weaknesses. In this post, I will put each of those package mangers to the test, and let you decide which you think is better.

more »