Changes between Version 2 and Version 3 of Migration


Ignore:
Timestamp:
Sep 1, 2009, 12:53:19 AM (15 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

some rewording

Legend:

Unmodified
Added
Removed
Modified
  • Migration

    v2 v3  
    33An 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.
    44
    5 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:
     5After performing either of these types of system upgrades, you will first need to install the base MacPorts system again, either from the appropriate disk image or from source. (You will probably not be able to use `sudo port selfupdate` because the old `port` command you have will probably not be compatible with your new system.) You must then reinstall all your ports. There are at least two ways you could do this.
     6
     7=== Manual method === #manual
     8
     9The most reliable way to reinstall your ports is as follows:
     10
    611 1. Save the list of installed ports:
    712{{{
     
    1217sudo port -f uninstall installed
    1318}}}
    14  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:
     19 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:
    1520{{{
    1621sudo port install portname +variant1 +variant2 ...
    1722}}}
     23Note that if you have specified variants which are not the default, you may need to install ports in an order other than the alphabetical order recorded in `myports.txt`.
     24
     25=== Automatic method === #automatic
    1826
    1927As of MacPorts 1.8.0, you can alternatively try a single command to rebuild all installed ports for your new platform: