Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
:::bash
sudo port selfupdate
port search pkg
sudo port install pkgMacPorts behind Firewall¶
Use http instead of rsync. Open the file
/opt/local/etc/macports/sources.confand replace the line:::bash rsync://rsync.macports.org/release/tarballs/ports.tar [default]with
:::bash http://www.macports.org/files/ports.tar.gz [default]Configure proxy.
:::bash export http_proxy=http://username:password@proxyURL:portNumber export HTTP_PROXY=http://username:password@proxyURL:portNumberexport export ftp_proxy=ftp://username:password@proxyURL:portNumber export FTP_PROXY=ftp://username:password@proxyURL:portNumber export rsync_proxy=username:password@proxyURL:portNumber export RSYNC_PROXY=username:password@proxyURL:portNumberUse
sudo port -d syncinstead ofsudo port selfupdateto print debugging information while updating.
References¶
https://
https://