WHY SHOULD I CARE? “0 to 60” software installs Version conflicts Documentation Uninstall for realz Your program uses WHAT?! Stop the goat sacrifices. For Ryan’s sake. Please don’t hurt the goat. Thursday, May 3, 12
WHAT’S A PACKAGE? Everything that one specific piece of software needs: List of dependencies List of files on disk Trigger scripts (install, uninstall) Documentation (sometimes) Thursday, May 3, 12
DEPENDENCY TREE The real world is more complex. DEPENDENCY HELL: When you need to find, compile, and install by hand every piece of software that the software you want depends on. Thursday, May 3, 12
MY HERO Package management software does it for you! Faster, better, and more reliably than you can. But that’s not all... Set it up, and walk away! Thursday, May 3, 12
BONUS! List all the software on your computer! Determine where a mysterious file came from! Uninstall and upgrade with certainty! Handle versions like a boss! Learn what a piece of software is used for! Thursday, May 3, 12
Step 1: Install Macports from macports.org Step 0: Install Xcode from Mac App Store Step 2: Open Terminal, install ports! Optional Step 3: Install Pallet from Macports $ sudo port install Pallet GUI Thursday, May 3, 12
MACPORTS CLI port install $NAME Install the port named $NAME port search $WORD Search for software related to $WORD for example $ port search python $ sudo port install python27 Thursday, May 3, 12
MACPORTS CLI port contents $NAME port installed Show all the ports you have currently installed port provides $FILE Show all the files that the $NAME port installed Show the name of the port that installed $FILE $ port contents python27 long list of files $ port provides /opt/local/bin/python2.7 python27 Thursday, May 3, 12
MACPORTS CLI port uninstall $NAME Uninstall the port named $NAME port upgrade $NAME Upgrade the $NAME port to the latest version port deps $NAME See which other ports the $NAME port depends on port info $NAME See description, version, and other information about the $NAME port Thursday, May 3, 12