Unix Apps on Mac OSX with MacPorts

MacPorts

One if not the greatest thing about OSX is that it’s a Unix variant based on FreeBSD. You get security, power, the terminal, flexibility and so on and you also get the applications. Here’s where MacPorts comes in. MacPorts is an open source project that allows OSX users to easily compile, install and upgrade applications.

You can download and install it here.

Install it from the package and make sure you have the following line in your ~/.bash_profile file:

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

Now for installing an app like Vim (GUI version) for example you would use the following commands:

  1. port search vim #to find what vim you want (gui/terminal)
  2. port variants vim-app #find different variants of vim-app (ruby interpreter, cscope etc.)
  3. sudo port install vim-app +ruby +huge #installing vim-app with ruby interpreter and huge features

If later on a new version comes out and you want to update it all you need to do is run the command:

sudo port upgrade vim-app or to upgrade everything:
sudo port selfupdate
sudo port upgrade outdated

There is another project called Fink that is doing basically the same thing however I’ve found MacPorts to be much quicker at getting new upgrades ready, and installing multiple features is a lot simpler.

Edit: Wasn’t thinking for a second thanks, Dave.

Similar Posts:

I Like This Tip!


7 Responses to “Unix Apps on Mac OSX with MacPorts”

  1. 4Avatars
    Dave South
    I tried "sudo port upgrade all" only once. It was a big mistake. It caused port to try to install ALL packages available on the macports system. Literally gigabytes of software.

    Instead, do "sudo port selfupdate" to bring in the latest information from the repository and to cause port to self update if a newer version is available.

    Then run "sudo port upgrade outdated" to only upgrade the installed packages that have newer versions available.

  2. Nice post Travis. Ports is my favorite thing about FreeBSD, it's good to see so many compatible Mac variants.


  3. Trackback
    How to use Symbolic Linking to Reference Files/Folders (Trust me, it’s Useful!) - MacTips

    [...] through all that trouble when 2 commands will do it? First just install the Vim through MacPorts ( see previous post ) then to make sure that you use the newer Vim all the time just use a symbolic link. To do this do [...]



  4. Trackback
    Audacity: Great Open Source Sound Editor (FREE) - MacTips

    [...] Of course it is installed right now, but to do anything with mp3s you’re going to need LAME (mp3 encoder), and we’re going to use MacPorts: [...]



  5. Trackback
    Installa Audacity en el OS X : Canal Apple

    [...] 3. Antes de que puedas hacer algo necesitas LAME (mp3 encode) así que desde MacPorts [...]



  6. Trackback
    Canal Apple Trucos y Utilidades - » Audacity

    [...] 3. Antes de que puedas hacer algo necesitas LAME (mp3 encode) así que desde MacPorts [...]



  7. Trackback
    Instala Audacity en el OS X |

    [...] 3. Antes de que puedas hacer algo necesitas LAME (mp3 encode) así que desde MacPorts [...]


Post a comment to "Unix Apps on Mac OSX with MacPorts"



MacTips Newsletter


Twitter MacTips

  • Stay up to date with the latest Mac tips, tricks and news by following us on twitter: MacintoshTips.

Most Popular Tips (30 Days)

Most Commented (30 Days)

Good Tips

Recent Discussions

MacTips Poll

What level of tips would you like to see?

View Results

Loading ... Loading ...

Friends of MacTips

Subscribe to MacTips

Site Links