If you need to re-install DarwinPorts from scratch because you've made a mess of something, this should help you make it easier to get everything back again...
Start by dropping a list of every port you've installed into a file:
Start by dropping a list of every port you've installed into a file:
$ port installed > installed.txt
This file can, of course, be edited. After you've re-installed the basic DarwinPorts, you can then get everything back this way:
$ sed 1,1d installed.txt | cut -f 3 -d ' ' | \
xargs -t -n 1 sudo port install
[robg adds: I haven't tested this one...]
•
[9,144 views]

