Changes between Version 18 and Version 19 of howto/InstallingOlderPort


Ignore:
Timestamp:
Aug 11, 2016, 6:38:54 AM (8 years ago)
Author:
JDLH (Jim DeLaHunt)
Comment:

New section: Working with the older ports

Legend:

Unmodified
Added
Removed
Modified
  • howto/InstallingOlderPort

    v18 v19  
    128128Make sure you specify the subport exactly as shown at the top of the output of `port info`. MacPorts [ticket:34619 will not warn or notify you] if you misspell a subport name or request a subport that does not exist.
    129129
     130=== Working with the older ports === #workingwith
     131
     132Once the port is installed, be careful about using the portname with other commands.
     133
     134{{{
     135$ sudo port install tcl
     136}}}
     137will 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
     139Similarly 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
    130151
    131152=== Another example === #example