Changes between Version 8 and Version 9 of howto/InstallingOlderPort


Ignore:
Timestamp:
May 25, 2009, 5:47:20 PM (15 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Reword introduction to show how older versions can be much more easily reinstalled if they are already installed, just inactive

Legend:

Unmodified
Added
Removed
Modified
  • howto/InstallingOlderPort

    v8 v9  
    33= How to install an older version of a port =
    44
    5  * Audience: Anyone needing an older version of a port than is currently available in the repository
     5 * Audience: Anyone needing an older version of a port than is currently available in the repository or installed on their machine
    66 * Requires: MacPorts >=1.7
    77
    88== Introduction ==
    99
    10 MacPorts does not include a feature to let you install an older version of a port. It only lets you install the current version of the port that has been created by the port author. You can work around this by getting an older version of the portfile from the Subversion repository.
     10When you upgrade an installed port, MacPorts deactivates the older version but keeps it installed. For example:
     11
     12{{{
     13$ port installed tcl
     14The following ports are currently installed:
     15  tcl @8.4.16_0+darwin_9 (active)
     16$ sudo port upgrade tcl
     17[snip]
     18$ port installed tcl
     19The following ports are currently installed:
     20  tcl @8.4.16_0+darwin_9
     21  tcl @8.5.0_0 (active)
     22$
     23}}}
     24
     25If you later discover you would like to go back to the older version, you can deactivate the current version and reactivate the older one:
     26
     27{{{
     28$ sudo port deactivate tcl
     29--->  Deactivating tcl
     30$ sudo port activate tcl @8.4.16_0+darwin_9
     31--->  Activating tcl @8.4.16_0+darwin_9
     32$
     33}}}
     34
     35Once you're confident the new version works to your satisfaction, you can uninstall the old one to reclaim disk space:
     36
     37{{{
     38$ sudo port uninstall tcl @8.4.16_0+darwin_9
     39}}}
     40
     41If you want to go back to an older version after you've already uninstalled it, or to an older version than you've ever had installed, you can do so by manually downloading the older version of the portfile from the Subversion repository.
    1142
    1243== Installation ==