Make it simpler to reinstall DarwinPorts

Oct 27, '05 05:45:00AM

Contributed by: BjarneDM

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:

$ 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...]

Comments (1)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20051023111347744