Page "Migration" was changed by elatllat@gmail.com Diff URL: <https://trac.macports.org/wiki/Migration?action=diff&version=64> Revision 64 Comment: A simple example Changes: -------8<------8<------8<------8<------8<------8<------8<------8<-------- Index: Migration ========================================================================= --- Migration (version: 63) +++ Migration (version: 64) @@ -70,3 +70,22 @@ sudo port unsetrequested installed sudo port setrequested myport1 myport2 … }}} + +=== A simple example === +run as root +{{{ +xcode-select --install +xcodebuild -license +echo "install this then press enter https://distfiles.macports.org/MacPorts/MacPorts-2.2.1-10.9-Mavericks.pkg" +read YNM +cp /opt/local/etc/macports/macports.conf ~/Downloads/macports.conf.old +cp /opt/local/etc/macports/macports.conf.default /opt/local/etc/macports/macports.conf +PL=~/Downloads/my_requested_ports.txt +port -q installed requested | perl -pe 's/@.*//g;s/ +//g' | sort -u > $PL +echo "make sure you want everything listed in $PL then press enter" +read YNM +port -f uninstall installed +port clean all +port install $(cat $PL | perl -pe 's/\n/ /g') +}}} +this example will ignore variants, compile flags, you may have used originally. -------8<------8<------8<------8<------8<------8<------8<------8<-------- -- Page URL: <https://trac.macports.org/wiki/Migration> MacPorts <http://www.macports.org/> Ports system for OS X This is an automated message. Someone added your email address to be notified of changes on 'Migration' page. If it was not you, please report to .