[Mac] Using Package manager

Posted on Updated on

Macports

  1. Install the Xcode and X code command line tools
    You can download it from mac appstore

  2. Install the macports through package installer
    It may take awhile (~10 min)

Download the install from here according your macOS version
https://www.macports.org/install.php

Troubleshoot

Fix Xcodebuild is unusable

#Error: Xcode appears to be installed but xcodebuild is unusable
sudo xcode-select -switch /Applications/Xcode.app

You can find the available ports (package list) in here:
https://www.macports.org/ports.php

Homebrew

  1. Install homebrew
    run this command
#from https://brew.sh/
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 

You can find the available formula (package list) in here:
https://formulae.brew.sh/formula/

Leave a comment