This tutorial page shows you how to use the Macports
- Download the Macports binary file from http://svn.macosforge.org/repository/macports/downloads/
- Install the by .pkg format
- make the ~/.bash_profile and edit it as follows.
- export PATH=/opt/local/bin:/opt/local/sbin/:$PATH
- export MANPATH=/opt/local/man:$MANPATH
- Self update by the next command
- Macports directory is saved at /opt/local/
- port <sub command>
- sudo port <sub command>
| sub command |
explanation |
| activate |
activate the port installed (default: activated) |
| clean |
delete the interim file |
| contents |
display the file name installed by ports |
| deactivate |
deactivate the installed ports |
| deps |
display the dependence of each port |
| info |
display the information about the port |
| install |
install the ports |
| installed |
display the installed ports |
| list |
list the ports available |
| outdated |
list the ports outdated, which means upgradable |
| selfupdate |
update all the installed ports |
| upgrade |
update the port specified |
| uninstall |
remove the ports |
| variants |
display the option available |
最終更新:2009年09月30日 12:09