[MacPorts] howto/InstallingOlderPort modified

MacPorts noreply at macports.org
Mon May 25 10:47:22 PDT 2009


Changed page "howto/InstallingOlderPort" by ryandesign at macports.org from 70.114.129.90*
Page URL: <http://trac.macports.org/wiki/howto/InstallingOlderPort>
Diff URL: <http://trac.macports.org/wiki/howto/InstallingOlderPort?action=diff&version=9>
Revision 9
Comment: Reword introduction to show how older versions can be much more easily reinstalled if they are already installed, just inactive

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/InstallingOlderPort
=========================================================================
--- howto/InstallingOlderPort (version: 8)
+++ howto/InstallingOlderPort (version: 9)
@@ -2,12 +2,43 @@
 
 = How to install an older version of a port =
 
- * Audience: Anyone needing an older version of a port than is currently available in the repository
+ * Audience: Anyone needing an older version of a port than is currently available in the repository or installed on their machine
  * Requires: MacPorts >=1.7
 
 == Introduction ==
 
-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.
+When you upgrade an installed port, MacPorts deactivates the older version but keeps it installed. For example:
+
+{{{
+$ port installed tcl 
+The following ports are currently installed:
+  tcl @8.4.16_0+darwin_9 (active)
+$ sudo port upgrade tcl
+[snip]
+$ port installed tcl 
+The following ports are currently installed:
+  tcl @8.4.16_0+darwin_9
+  tcl @8.5.0_0 (active)
+$ 
+}}}
+
+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:
+
+{{{
+$ sudo port deactivate tcl
+--->  Deactivating tcl
+$ sudo port activate tcl @8.4.16_0+darwin_9
+--->  Activating tcl @8.4.16_0+darwin_9
+$
+}}}
+
+Once you're confident the new version works to your satisfaction, you can uninstall the old one to reclaim disk space:
+
+{{{
+$ sudo port uninstall tcl @8.4.16_0+darwin_9
+}}}
+
+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.
 
 == Installation ==
 

-------8<------8<------8<------8<------8<------8<------8<------8<--------

* The IP shown here might not mean anything if the user or the server is
behind a proxy.

--
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/ added your email
address to be notified of changes on howto/InstallingOlderPort. If it was not you, please
report to .


More information about the macports-changes mailing list