A c t i o n s o r T a r g e t s s u p p o r t e d b y MacPorts
Below is an exhaustive list of actions (also called targets) supported by port, as far as I could extract from available sources (Stand June 2016).
- | Action target | Target category | Infos Examples | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | activate | User |
port activate <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2 | archive | Developer |
port archive <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3 | archivefetch | Developer |
port archivefetch <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
4 | build | Developer |
port build <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | cat | Developer |
port cat <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
6 | cd |
port cd <port-name> |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
7 | checksum | Developer |
port checksum <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
8 | clean | User |
port clean <port-name(s)> Following options are supported:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
9 | configure | Developer |
port configure <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
10 | contents | User |
port contents <port-name(s)> For example port contents perl5.22 returns 2240 entries: Files stored in /opt/local/bin/, /opt/local/lib/perl5/ (pm files), /opt/local/share/man/man1p, /opt/local/share/man/man3p. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
11 | deactivate | User |
port deactivate <port-name> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
12 | dependents | User |
port dependents <port-name(s)> For example port dependents perl5.22 may return 55 entries (those ports that directly depend on perl5.22). See also action rdependents. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
13 | deps | User |
port deps <port-name(s)> For example port deps perl5.22 may return following ports (on which perl5.22 depends):
Action deps can be considered a short cut of following syntax:
See also action rdeps. Note: Do not confuse dependents and deps they explore the same depends-on relationship but in the opposite direction. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
14 | destroot | Developer |
port destroot <port-name> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
15 | dir | Developer |
port dir <port-name> For example (on my current system) port dir perl5.22 returns /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/perl5 See also action file. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
16 | distcheck | Developer |
port distcheck <port-name(s)> For example (on my current system) port distcheck perl5.22 returns:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
17 | distfiles | Developer |
port distfiles <port-name> For example (on my current system) port distfiles perl5.22 returns:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
18 | dmg | Packaging |
port dmg <port-name(s)> See also action mdmg. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
19 | dpkg | Packaging |
port dpkg <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
20 | echo | User |
port echo <pseudo-name> For example (on my current system) port echo installed returns 654 entries and port echo outdated returns no entry. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
21 | edit | Developer |
port edit <pseudo-name> For example port edit --editor vi perl5.22 edits port-file associated with perl5.22 using the vi editor. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
22 | exit |
exit See also action quit. (Is there a difference?) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
23 | extract | Developer |
port extract <port-name> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
24 | fetch | Developer |
port fetch <port-name> See also action mirror. (Is there a difference?) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
25 | file | Developer |
port file <port-name> For example (on my current system) port file perl5.22 returns /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/perl5/Portfile See also action dir. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
26 | gohome | User |
port gohome <port-name>
For example (on my current system)
port gohome perl5.22 opens following
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
27 | help | User |
port help <action-name> If no action is mentioned, displays lists of supported actions (listed in this table), pseudo port names, and selectors. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
28 | info | User |
port info <port-name(s)> Following options are available:
For example (on my current system) port info vim returns following (on my system):
Remarks:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
29 | install | User |
port install <port-name(s)>
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
30 | installed | User |
port (echo) installed
For example (on my system) Note: A similar action info installed yields much more information than echo. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
31 | lint | Developer |
port lint <port-name> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
32 | list | User |
port list <port-name(s)> For example (on my system) port list perl5.22 returns
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33 | livecheck | Developer |
port livecheck <port-name(s)> For example port livecheck perl5.22 returns nothing (probably meaning that there is nothing to update). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
34 | load | Developer |
port load <port-name> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
35 | location | User |
port location <port-name(s)> For example port location perl5.22 returns following (on my system):
port location perl5.22@5.22.2_0 returns:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
36 | log | User |
port log <port-name(s)> Shows main log for the given ports. Following options are available:
If no log file is available, an error Log file for port not found is thrown. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
37 | mdmg | Packaging |
port mdmg <port-name(s)> See also action dmg. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
38 | mirror |
port mirror <port-name(s)> See also action fetch. (Is there a difference?) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
39 | mpkg | Packaging |
port mpkg <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
40 | notes |
port notes <port-name(s)> Many ports ( e.g. perl5.22 or vim ) have no notes. In this case the command displays message port has no notes. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
41 | outdated | User |
port (echo) outdated
A similar action is port info outdated, which delivers more information,
if ports happen to be outdated.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
42 | patch | Developer |
port patch <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
43 | pkg | Packaging |
port pkg <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
44 | platform | User |
port platform <port-name(s)> For example port platform may return
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
45 | portpkg | no help for portpkg | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
46 | provides | User |
port provides <file-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
47 | quit |
quit See also action exit. (Is there a difference?) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
48 | rdependents | User |
port rdependents <port-name(s)> For example (on my current system) port rdependents perl5.22 returns 117 entries - as expected, more than those directly dependent. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
49 | rdeps | User |
port rdeps <port-name(s)> For example (on my current system) port rdeps perl5.22 returns following ports (on which perl5.22 depends directly or indirectly):
As suggested by the output, there is only one port on which perl5.22 directly depends: gdbm (see also action deps). All other ports listed are indirect (higher level) dependencies . |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
50 | rev-upgrade | User |
port rev-upgrade Note: In order to ensure consistency, rev-upgrade always applies to all installed ports. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
51 | rpm | Packaging |
port rpm <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
52 | search | User |
port search <--option> <argument(s)> Target search has two levels of control:
Following options are available:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
53 | select |
port select <--option> <argument(s)> Following options are available:
For example port select --summary may return following:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
54 | selfupdate | User |
port selfupdate <--option(s)> Following options are available:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
55 | setrequested |
port requested <port-name(s)> |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
56 | space |
port space <--options> port-name(s) Following options are available:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
57 | srpm | Packaging |
port srpm <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
58 | sync | User |
port sync <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
59 | test | Developer |
port test <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
60 | unarchive | Developer |
port unarchive <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
61 | uninstall | User |
port uninstall <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
62 | unload | Developer |
port unload <port-name> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
63 | unsetrequested | Developer |
port unsetrequested <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
64 | upgrade | User |
port upgrade <port-name(s)> Respects global option -n (don't follow dependencies in upgrade), -R (also upgade dependents) and -u(uninstall non-active ports when upgrading and uninstalling). Note that in selecting variants to use in the upgraded build of the port, the order of precedence is variants specified on the command line, the variants active in the latest installed version of the port, then the variants.conf file Following options are supported:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
65 | url | User |
port url <port-name(s)> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
66 | usage | User |
port usage |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
67 | variants | User |
port variants <port-name(s)> For example port variants perl5 may return following
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
68 | version | User |
port version |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
69 | work |
No help for topic work |
Remarks:
-
How did I collect the information?
In most cases I typed port help <action> to extract basic informations from its (rather laconic) output. I then post-processed i.e. tested on examples, checked for additional explanations in online manpages (for example atpuredarwin.org).
If a given port(-name) is not installed, an error is issued.
Some commands above are User Commands for those who only download software. Distribution files are either binaries or sources that build the software in a further (automatic) step. Some commands are Developer Commands for those who (develop and) distribute their software via MacPorts.