MacPorts QuickStart for Mac OS X 10.12 Sierra
This is Mac Tutorial is about How-to Install and Getting-Started with the MacPorts on Mac OS X 10.12 Sierra BSD.
The whole process is neither long nor difficult, it require only a Basic Command Practice…
Installing MacPorts from Source is the Only way Currently available for Mac OS X 10.12 Sierra.
But with the Installation from SVN Repo you receive the Latest Updates and Enhancements of MacPorts.

-
Required XCode Installation for MacPorts:
-
Open a Shell Terminal emulator window
(Press “Enter” to Execute Commands) -
Install XCode Command Line Tools
sudo xcode-select --install
-
Check out MacPorts source
sudo mkdir -p /opt/mports
cd /opt/mports
sudo svn checkout https://svn.macports.org/repository/macports/trunk/base
Actions to perform Checking out the SVN Repo:
Hit q to Exit on License Agreement
Enter “agree” to take it
Type ‘p’ to Accept the certificate
If the Connection is broken then Try Again… -
Installing the MacPorts
cd base
sudo ./configure --enable-readline
sudo make
sudo make install
Then Entire process will Take only a Few Minutes…
-
Update the System PATH
sudo nano /etc/profile
Append
export PATH=$PATH:/opt/local/bin
Ctrl+x to Save Changes & Exit from nano Editor
Load the New PATH Set-Upsudo source /etc/profile
-
Checking MacPorts Installation
which port
-
Updating MacPorts Tree
sudo port -v selfupdate
-
Agree to XCode License
sudo xcodebuild -license
-
Getting-Started with MacPorts Packages Installation: