| 73 | |
| 74 | === A simple example === |
| 75 | run as root |
| 76 | {{{ |
| 77 | xcode-select --install |
| 78 | xcodebuild -license |
| 79 | echo "install this then press enter https://distfiles.macports.org/MacPorts/MacPorts-2.2.1-10.9-Mavericks.pkg" |
| 80 | read YNM |
| 81 | cp /opt/local/etc/macports/macports.conf ~/Downloads/macports.conf.old |
| 82 | cp /opt/local/etc/macports/macports.conf.default /opt/local/etc/macports/macports.conf |
| 83 | PL=~/Downloads/my_requested_ports.txt |
| 84 | port -q installed requested | perl -pe 's/@.*//g;s/ +//g' | sort -u > $PL |
| 85 | echo "make sure you want everything listed in $PL then press enter" |
| 86 | read YNM |
| 87 | port -f uninstall installed |
| 88 | port clean all |
| 89 | port install $(cat $PL | perl -pe 's/\n/ /g') |
| 90 | }}} |
| 91 | this example will ignore variants, compile flags, you may have used originally. |