Changes between Version 62 and Version 63 of Migration


Ignore:
Timestamp:
Oct 31, 2013, 1:40:31 AM (11 years ago)
Author:
jmroot (Joshua Root)
Comment:

revert

Legend:

Unmodified
Added
Removed
Modified
  • Migration

    v62 v63  
    1818==== OS X 10.9 Mavericks ====
    1919
    20 MacPorts require Xcode, which is available for free on the Mac App Store.
    21 {{{
    22 sudo xcode-select --install
    23 sudo xcodebuild -license
    24 }}}
     20For minimum support of MacPorts, you need the Command Line Tools, which can be installed using `xcode-select --install`. If you are installing MacPorts from source, you will also want to run `sudo xcodebuild -license`. Note that some ports will require a full Xcode installation, which is available for free on the Mac App Store.
     21
    2522=== Reinstall MacPorts ===
    2623
     
    3330Several other settings in macports.conf have changed their defaults over the years. Take a moment to compare each line of your macports.conf with the corresponding line in macports.conf.default in the same directory. Unless you know a reason why a line your settings file should be different from the defaults, adopt the line from the defaults file.
    3431
    35 {{{
    36 cp /opt/local/etc/macports/macports.conf.default /opt/local/etc/macports/macports.conf
    37 }}}
    38 
    39 
    4032=== Reinstall ports === #ports
    4133
     
    4436 1. Save the list of installed ports:
    4537{{{
    46 port -qv installed > my_installed_ports.txt
    47 port list requested | perl -pe 's/ .*//g' | sort -u > my_requested_ports.txt
     38port -qv installed > myports.txt
    4839}}}
    4940 2. Uninstall all installed ports:
     
    5546sudo port clean all
    5647}}}
    57  4. Install your old ports:
     48 4. Browse `myports.txt` and install the ports that you actually want to use (as opposed to those that are only needed as dependencies) one by one, remembering to specify the appropriate variants:
    5849{{{
    59 sudo port install $(cat my_requested_ports.txt | perl -pe 's/\n/ /g')
     50sudo port install portname +variant1 +variant2 …
    6051}}}
     52Note that if you have specified variants which are not the default, you may need to install ports in an order other than the alphabetical order recorded in `myports.txt`.
    6153
    6254==== Automatically reinstall ports ==== #automatic
    6355
    64 A script has been written to automate Step 4 above more accurately, though it has some caveats. If it fails, you will just have to do it manually. (But see workaround for conflicting ports below.)
     56A script has been written to automate Step 4 above, though it has some caveats. If it fails, you will just have to do it manually. (But see workaround for conflicting ports below.)
    6557
    6658To use it, you will first need to run steps 1-3 as described above. Then:
     
    6961curl -O https://svn.macports.org/repository/macports/contrib/restore_ports/restore_ports.tcl
    7062chmod +x restore_ports.tcl
    71 sudo ./restore_ports.tcl my_installed_ports.txt
     63sudo ./restore_ports.tcl myports.txt
    7264}}}
    7365