Currently, the Migration
<https://trac.macports.org/wiki/Migration#ports> guide on the wiki
denotes a 6-step process to restore ports after an upgrade, one of which
requires the user to download a script that hasn't worked properly for a
few years now (doesn't restore variants and ignore platform and arch). I
propose a much simpler instruction like so:
3. *Reinstall your ports*
1. Save the list of installed ports:
port echo requested | sed -E s/@[^\+]+//g > requested.txt
2. Uninstall all installed ports:
sudo port -f uninstall installed
3. Run a regular clear out of your installation:
sudo port reclaim
4. Restore requested ports:
sudo bash -c 'cat requested.txt | xargs port -v install'
This is much simpler, no need for notes or warnings or editing the text
files.
Jimmy Yuen Ho Wong