Tar.gz one for manual compilation, if you intend to customize your installation
In source form as either a tar.bz2 package or a.Procedure that most users should follow after meeting the requirements listed MacPorts version 2.7.1 is available in various formats for download and installation (note, if you are upgrading to a new major release of macOS, see the migration info page): Install MacPorts for your version of the Mac operating system:.Agree to Xcode license in Terminal: sudo xcodebuild -license.Install Xcode and the Xcode Command Line Tools.