108 | | The goal of the new port migrate action is to automate the processes described in the migration documentation. |
| 108 | The goal of the new port migrate action is to automate the processes described in the migration documentation. The steps to migrate would be roughly: |
| 109 | |
| 110 | 1. Rebuild MacPorts itself (e.g. by invoking selfupdate) if it has not been rebuilt for the new OS already. MacPorts has a version field compiled in that allows tracking this. |
| 111 | 2. Store a copy of all installed ports with their variants so the same exact set can be re-installed. |
| 112 | 3. Deactivate all installed ports. |
| 113 | 4. Re-install all ports from the stored list of ports. Properly deal with interruptions and resuming so that failures during this procedure can be separately debugged and the migration re-attempted. |