Monday, February 28, 2011
How to install and maintain oss software on Mac OS X
An easy way to install and maintain oss software is using MacPorts, a packet management system that allows you to install software from a huge software tree that should cover all your nerdy needs.
Unlike most packet managers MacPorts will download and compile the software package on your machine instead of downloading binaries which can be a time (and cpu) consuming task.
X11: You find X11 on your Mac OS X Installation DVD as "Optional Installs".
Xcode: You need to install Xcode which you find on your Mac OS X Installation DVD. Make sure you install the optional components for the command line development aswell. (unix development)
After the installation of Macports (which is pretty straightforward) you just need to open terminal.
Note: commands with "sudo" infront are executed with superuser rights, therefore os x will ask for your password.
First we do a update of the port library
sudo port -v selfupdate
to search software we simply use
port search imagemagick
to obtain information about a package
port info imagemagick
and finally we install the package
sudo port install imagemagick
to uninstall you can simply do
sudo port uninstall imagemagick
to check a list of currently installed packages
and upgrade all installed packages to the newest version
sudo port upgrade outdated
If you have any questions or comments feel free to post em, next time we will look how to install and use Windows programs under Mac OS X.