Changes between Version 61 and Version 62 of Migration


Ignore:
Timestamp:
Oct 31, 2013, 12:16:59 AM (11 years ago)
Author:
Dmole (Tim)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Migration

    v61 v62  
    1818==== OS X 10.9 Mavericks ====
    1919
    20 For 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 
     20MacPorts require Xcode, which is available for free on the Mac App Store.
     21{{{
     22sudo xcode-select --install
     23sudo xcodebuild -license
     24}}}
    2225=== Reinstall MacPorts ===
    2326
     
    3033Several 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.
    3134
     35{{{
     36cp /opt/local/etc/macports/macports.conf.default /opt/local/etc/macports/macports.conf
     37}}}
     38
     39
    3240=== Reinstall ports === #ports
    3341
     
    3644 1. Save the list of installed ports:
    3745{{{
    38 port -qv installed > myports.txt
     46port -qv installed > my_installed_ports.txt
     47port list requested | perl -pe 's/ .*//g' | sort -u > my_requested_ports.txt
    3948}}}
    4049 2. Uninstall all installed ports:
     
    4655sudo port clean all
    4756}}}
    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:
     57 4. Install your old ports:
    4958{{{
    50 sudo port install portname +variant1 +variant2 …
     59sudo port install $(cat my_requested_ports.txt | perl -pe 's/\n/ /g')
    5160}}}
    52 Note 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`.
    5361
    5462==== Automatically reinstall ports ==== #automatic
    5563
    56 A 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.)
     64A 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.)
    5765
    5866To use it, you will first need to run steps 1-3 as described above. Then:
     
    6169curl -O https://svn.macports.org/repository/macports/contrib/restore_ports/restore_ports.tcl
    6270chmod +x restore_ports.tcl
    63 sudo ./restore_ports.tcl myports.txt
     71sudo ./restore_ports.tcl my_installed_ports.txt
    6472}}}
    6573