MacPorts behind a proxy/firewall and some tips to upgrade the ports
By jim on Feb 18, 2014
For those who like to use MacPorts on their Apple system, here are some hints. 0 ) I am assuming you know what is "MacPorts" right ?
* make sure you've accepted the Xcode license (mandatory step!);
$ sudo xcodebuild -license
1 ) how to use the port command behind a firewall/proxy ? * using sudo or as root on your Mac, export the following shell variables; export proxy_http=Yourproxy.com:8x export proxy_https=Yourproxy.com:8x export proxy_ftp=Yourproxy.com:8x export proxy_rsync=Yourproxy.com:8x export proxy_skip=Yourproxy.com:8x export http_proxy=http://Yourproxy.com:8x export RSYNC_PROXY=Yourproxy.com:8x # 8x is the port number, check it out with your sysadmin... 2 ) how to upgrade your port package ? * make sure your $PATH is set up properly; export PATH=/opt/local/bin:/opt/local/sbin:$PATH * self update your port command; $ sudo port -v selfupdate * upgrade any package installed previously; $ port upgrade outdated 3 ) How to obtain the list of installed ports on your system ?
$ port installed 4 ) How to search for a port in the repository ? $ port search nmap* or you can grep it; $ port list | grep -i nmap (e.g "nmap" is the package I am looking for...)