ข้ามไปยังเนื้อหาหลัก

Migrate from Macport to Homebrew

· อ่าน 1 นาที
Kobkrit Viriyayudhakorn
CEO, iApp Technology

Why?

  1. Macport is old, and significantly slow than homebrew.
  2. Homebrew is safer.

How?
First, Uninstall all programs installed by Macport.

sudo port -fp uninstall installed

Then remove all Macport’s application files,

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

Install brew,

ruby -e “$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"