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. |
| 10 | When you upgrade an installed port, MacPorts deactivates the older version but keeps it installed. For example: |
| 11 | |
| 12 | {{{ |
| 13 | $ port installed tcl |
| 14 | The 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 |
| 19 | The following ports are currently installed: |
| 20 | tcl @8.4.16_0+darwin_9 |
| 21 | tcl @8.5.0_0 (active) |
| 22 | $ |
| 23 | }}} |
| 24 | |
| 25 | If 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 | |
| 35 | Once 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 | |
| 41 | If 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. |