Update port reinstallation instruction on wiki
Jimmy Yuen Ho Wong
wyuenho at gmail.com
Sun Oct 1 23:36:11 UTC 2023
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20231002/cb92cabc/attachment.htm>
More information about the macports-dev
mailing list