[MacPorts] Migration added

MacPorts noreply at macports.org
Thu Aug 27 12:02:08 PDT 2009


Added page "Migration" by jmr at macports.org from 202.7.166.167*
Page URL: <http://trac.macports.org/wiki/Migration>
Comment: Instructions for changing OS release or CPU architecture
Content:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
== Migrating a MacPorts install to a new major OS version or CPU architecture ==

An installation of MacPorts and the ports installed by it are only designed to work on a single OS release and a single CPU architecture. If you upgrade to a new OS version (e.g. from Tiger to Leopard) or migrate to a new machine with a different type of CPU (e.g. PowerPC to Intel), you may get lucky and have your ports keep working, but in general, things will break.

After making either of these changes, you should first install the base MacPorts system again, either from the appropriate disk image, or from source. You must then reinstall all your ports. The most reliable way to do this is as follows:
 1. Save the list of installed ports:
{{{
port installed > myports.txt
}}}
 2. Uninstall them all:
{{{
sudo port -f uninstall installed
}}}
 3. Browse `myports.txt`, and install the ports that you actually want to use (as opposed to those that are only needed as dependencies) one by one, remembering to specify the appropriate variants:
{{{
sudo port install portname +variant1 +variant2 ...
}}}

As of MacPorts 1.8.0, you can alternatively try a single command to rebuild all installed ports for your new platform:
{{{
sudo port upgrade --force installed
}}}
Note that this may sometimes fail if the dependency relationships declared by the ports are not completely accurate.
-------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 Migration. If it was not you, please
report to .


More information about the macports-changes mailing list