MacPorts

From Wikichris
Jump to: navigation, search

What ?

You certainly know how convenient is aptitude for Debian, the following command

apt-get install something

will install the something and all the necessary package (all the dependencies)

You can now have the same awesome thing for Mac OS X:

sudo port install something

"The MacPorts Project is an open-source community initiative to design an easy-to-use system for compiling, installing, and upgrading either command-line, X11 or Aqua based open-source software on the Mac OS X operating system. To that end we provide the command-line driven MacPorts software package under a BSD License, and through it easy access to thousands of ports that greatly simplify the task of compiling and installing open-source software on your Mac"

Install

You can Install it from

Useful

NMap on Mac OS X

Do you want to use nmap from you loved macbook or imac ? if you installed MacPorts you just have to type this command

sudo port install nmap

To see the open ports

nmap 192.168.0.1

To see which OS is used on a distant computer

nmap -O 192.168.0.1

Already installed

To know what is already installed

sudo port installed

Self upgrade

sudo port selfupdate
sudo port upgrade outdated

Uninstall Macports

I didn't test the following method to uninstall Macports, it's based on

sudo port -f uninstall installed
sudo rm -rf \
   /opt/local \
   /Applications/DarwinPorts \
   /Applications/MacPorts \
   /Library/LaunchDaemons/org.macports.* \
   /Library/Receipts/DarwinPorts*.pkg \
   /Library/Receipts/MacPorts*.pkg \
   /Library/StartupItems/DarwinPortsStartup \
   /Library/Tcl/darwinports1.0 \
   /Library/Tcl/macports1.0 \
   ~/.macports