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:
- port search vim #to find what vim you want (gui/terminal)
- port variants vim-app #find different variants of vim-app (ruby interpreter, cscope etc.)
- 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.
Dave South
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. December 23rd, 2007 at 10:33 pm
Brad Jasper
Trackback
[...] 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 [...]
January 21st, 2008 at 3:54 pmTrackback
[...] 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: [...]
February 1st, 2008 at 5:32 pmTrackback
[...] 3. Antes de que puedas hacer algo necesitas LAME (mp3 encode) así que desde MacPorts [...]
February 2nd, 2008 at 3:24 pmTrackback
[...] 3. Antes de que puedas hacer algo necesitas LAME (mp3 encode) así que desde MacPorts [...]
April 27th, 2008 at 6:42 amTrackback
[...] 3. Antes de que puedas hacer algo necesitas LAME (mp3 encode) así que desde MacPorts [...]
May 19th, 2008 at 6:24 pm