MacPorts behind a proxy/firewall and some tips to upgrade the ports

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 ?

* if not, install Apple Xcode then MacPorts package from there.

* 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...)

Comments:

Post a Comment:
Comments are closed for this entry.
About

Principal Systems Technologist Engineer for Oracle Global IT. Sun Microsystems software and hardware specialist. I am based in Spain but currently manage projects and systems around the world. I am very often involved to mentor the new engineers joining the forces of Oracle. I come from the Linux sysadmin world... and will be definitively thankfulness for all the great things I've been learning the past 15 years...

Search

Categories
Archives
« April 2015
SunMonTueWedThuFriSat
   
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  
       
Today