| 130 | === Working with the older ports === #workingwith |
| 131 | |
| 132 | Once the port is installed, be careful about using the portname with other commands. |
| 133 | |
| 134 | {{{ |
| 135 | $ sudo port install tcl |
| 136 | }}} |
| 137 | will install the _current_ version of tcl, even though you are in a directory with an older version of tcl. Leave off the port name to install the older version from the current directory. |
| 138 | |
| 139 | Similarly for other commands like '''port logfile''', there is a difference between specifying the name of a port and leaving it out. Specifying the version number of the older port doesn't work; many port commands ignore a version specifier. |
| 140 | |
| 141 | {{{ |
| 142 | $ port logfile MPlayer |
| 143 | /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_MPlayer/MPlayer/main.log |
| 144 | $ port logfile |
| 145 | /opt/local/var/macports/logs/_Users_myuser_tmp_mplayer_1.1_8_MPlayer/MPlayer/main.log |
| 146 | $ port logfile MPlayer @1.1_8 |
| 147 | /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_MPlayer/MPlayer/main.log |
| 148 | }}} |
| 149 | |
| 150 | |