Macports

From RedBrick Wiki
Jump to: navigation, search

Macports is like apt-get for OSX, it contains many useful packages, and is a good way of keeping certain things managed and up-to-date.

However, like many tools, it doesn't 'just-work' on the networks in DCU, so here's a guide that will get it up and running within DCU.

Macports Installation

  • Install Macports
  • Then edit it's config file:
sudo vi /opt/local/etc/macports/macports.conf
  • Hit Shift+G for the bottom of the file, and copypasta the following few lines in:
proxy_override_env      yes
# HTTP proxy:
proxy_http              proxy1.dcu.ie:3128
# HTTPS proxy:
proxy_https             proxy1.dcu.ie:3128
# FTP proxy:
proxy_ftp               proxy1.dcu.ie:3128
# rsync proxy:
proxy_rsync             proxy1.dcu.ie:3128
  • Then update the port tree:
sudo port selfupdate
  • And if everything is correct, you should see something along the lines of:
The ports tree has been updated. To upgrade your installed ports, you should run
 port upgrade outdated