Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on MacPorts

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

sudo port selfupdate
port search pkg
sudo port install pkg

MacPorts behind Firewall

  1. Use http instead of rsync. Open the file /opt/local/etc/macports/sources.conf and replace the line …

Install GNU Utils Using MacPorts

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Configuration

Run the following command after installation.

export PATH=/opt/local/libexec/gnubin/opt/local/bin:/opt/local/sbin:$PATH
export MANPATH=/opt/local/share/man:$MANPATH

Installation

sudo port install …