Changes between Version 98 and Version 99 of Migration


Ignore:
Timestamp:
Aug 28, 2017, 11:57:16 PM (7 years ago)
Author:
thomasrussellmurphy (Thomas Russell Murphy)
Comment:

Change procedure to have the preparation step of logging installed ports *before* installing the new OS and upgrading MacPorts

Legend:

Unmodified
Added
Removed
Modified
  • Migration

    v98 v99  
    1212== Migration procedure ==
    1313
    14 1. [=#xcode **Install the latest version of Xcode and the Xcode command line tools**]
    15 
    16    After a major system change, update the development tools by
    17    [https://guide.macports.org/#installing.xcode installing the latest version of Xcode].
    18    Open the Xcode application once after installation and follow any prompts.
    19    Install the command line tools package as well.
    20 
    21 2. [=#base **Reinstall MacPorts base**]
    22 
    23    After updating the development tools,
    24    [https://www.macports.org/install.php install the base MacPorts system]
    25    for your new platform, either from the appropriate installer or from
    26    source.
    27 
    28    **Update macports.conf**: If your {{{macports.conf}}} (typically at {{{ /opt/local/etc/macports/macports.conf}}}) contains uncommented settings for {{{universal_archs}}} or {{{build_arch}}}, you will likely want to update them, since unlike earlier OS versions, the compiler on Snow Leopard and later will build for x86_64 by default on systems that support it. The default values will be fine for almost all users, so unless you know you need something different, just comment out these two lines. Several other settings in {{{macports.conf}}} have changed their defaults over the years. Take a moment to compare each line of your {{{macports.conf}}} with the corresponding line in {{{macports.conf.default}}} in the same directory. Unless you know a reason why a line in your settings file should be different from the defaults, adopt the line from the defaults file.
    29 
    30 3. [=#ports **Reinstall ports**]
     141. [=#preparation **Prepare for system version upgrade**]
    3115   a. Save the list of installed ports:
    3216      {{{
     
    4529      sudo rm -rf /opt/local/var/macports/build/*
    4630      }}}
     31
     322. [=#osupgrade **Install new OS**]
     33
     34   Perform your OS upgrade.
     35
     363. [=#xcode **Install the latest version of Xcode and the Xcode command line tools**]
     37
     38   After a major system change, update the development tools by
     39   [https://guide.macports.org/#installing.xcode installing the latest version of Xcode].
     40   Open the Xcode application once after installation and follow any prompts.
     41   Install the command line tools package as well.
     42
     434. [=#base **Reinstall MacPorts base**]
     44
     45   After updating the development tools,
     46   [https://www.macports.org/install.php install the base MacPorts system]
     47   for your new platform, either from the appropriate installer or from
     48   source.
     49
     50   **Update macports.conf**: If your {{{macports.conf}}} (typically at {{{ /opt/local/etc/macports/macports.conf}}}) contains uncommented settings for {{{universal_archs}}} or {{{build_arch}}}, you will likely want to update them, since unlike earlier OS versions, the compiler on Snow Leopard and later will build for x86_64 by default on systems that support it. The default values will be fine for almost all users, so unless you know you need something different, just comment out these two lines. Several other settings in {{{macports.conf}}} have changed their defaults over the years. Take a moment to compare each line of your {{{macports.conf}}} with the corresponding line in {{{macports.conf.default}}} in the same directory. Unless you know a reason why a line in your settings file should be different from the defaults, adopt the line from the defaults file.
     51
     525. [=#ports **Reinstall ports**]
    4753   a. Download and execute the restore_ports script. (If you installed MacPorts from source and used a custom prefix, then you'll need to use the -p option when you run restore_ports.tcl; see `./restore_ports.tcl -h`.)
    4854      {{{
     
    5864      xargs sudo port setrequested < requested.txt
    5965      }}}
     66
     67   You can now safely remove the `myports.txt` and `requested.txt` documents and the `restore_ports.tcl` script.
    6068
    6169== Troubleshooting ==